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 ../../../_images/query.gif ../../../_images/edit.gif
  Query or edit the active composition.
allCompositions / acp bool ../../../_images/query.gif
  Return all compositions inside Time Editor.
createTrack / ct bool ../../../_images/create.gif
  Create a default track when creating a new composition.
delete / delete bool ../../../_images/query.gif ../../../_images/edit.gif
  Delete the composition.
duplicateFrom / df unicode ../../../_images/create.gif
  Duplicate the composition.
rename / ren unicode, unicode ../../../_images/edit.gif
  Rename the composition of the first name to the second name.
tracksNode / tn bool ../../../_images/query.gif
  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)