!I integrate from //ce/main...
[CRYENGINE.git] / Editor / Scripts / select_story_anim_objects.py
blob50f3c697be8030f2f083e4df7b3795511a4106ff
1 # Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
3 objects = object.get_all_objects("AnimObject", "") # Get the name list of all anim objects in the level.
4 selection.clear()
5 # If there is any object with the geometry file whose name contains "\\story\\", select it
6 for obj in objects:
7 geometry_file = entity.get_geometry_file(obj)
8 if geometry_file.find("\\story\\") != -1:
9 selection.select_object(obj)