pymel.core.animation.timeEditorComposition¶
- timeEditorComposition(*args, **kwargs)¶
Commands related to composition management inside Time Editor.
Flags:
Long Name / Short Name Argument Types Properties active / act bool Query or edit the active composition. allCompositions / acp bool Return all compositions inside Time Editor. createTrack / ct bool Create a default track when creating a new composition. delete / delete bool Delete the composition. duplicateFrom / df unicode Duplicate the composition. rename / ren unicode, unicode Rename the composition of the first name to the second name. tracksNode / tn bool Query the tracks node of a composition. Flag can have multiple arguments, passed either as a tuple or a list. Derived from mel command maya.cmds.timeEditorComposition
Example:
- ::
import pymel.core as pm
# To create composition “Take1” pm.timeEditorComposition(“Take1”) # Result: u’Take1’ #
# To query active composition (returns name of the tracks node for that composition) pm.timeEditorComposition(query=1, active=1) # Result: u’Take1’ #
# To set active composition by specifying the associated tracks node pm.timeEditorComposition(“TE_Tracks_Take2”, edit=1, active=1)