All Classes Namespaces Functions Variables Pages
OMC::SceneList Class Reference

Detailed Description

A list of scenes contained within a project.

Provided from OMC::Project::scenes and provides an object with iterable, list[idx] access to the available OMC::Scene objects. In Harmony, multiple scenes will be present in the project if symbols are used.

Note
The main scene should always be the first entry in the scene list. This main scene is also available from OMC::Project::scene.


Identify All Scenes in a Project

from ToonBoom import harmony #Import the Harmony Module
sess = harmony.session() #Get access to the Harmony session, this class.
proj = sess.project #Get the active session's currently loaded project.
scene_list = proj.scenes #The scene list for the project.
print( "Scene Count : %s"%(len(scene_list)) )
for idx,scene in enumerate( scene_list ):
print( "Scene %s : %s"%(idx,scene.name) )

Public Attributes

OMC::Sceneoperator[int idx]
 Provides the Scene at the given index.
 
Inheritance diagram for OMC::SceneList:
Collaboration diagram for OMC::SceneList: