pymel.core.animation.timeEditorClipLayer

timeEditorClipLayer(*args, **kwargs)

Time Editor clip layers commands

Flags:

Long Name / Short Name Argument Types Properties
addAttribute / aa unicode ../../../_images/edit.gif
  Add given plug to a layer with a supplied layerId.
addLayer / al unicode ../../../_images/edit.gif
  Add a new layer with a given name.
addObject / ao unicode ../../../_images/edit.gif
  Add given object with all its attributes in the clip to a layer with a supplied layerId.
allLayers / all bool ../../../_images/query.gif
  Return all layers given clip ID.
attribute / a unicode ../../../_images/edit.gif
  The attribute path to key.
attributeKeyable / ak unicode ../../../_images/query.gif
  Return whether specified attribute is keyable.
clipId / cid int ../../../_images/edit.gif
  ID of the clip this layer command operates on. In query mode, this flag can accept a value.
index / idx int ../../../_images/edit.gif
  Layer index, used when adding new layer at specific location in the stack.
keySiblings / ks bool ../../../_images/edit.gif
  If set to true, additional attributes might be keyed while keying to achieve desired result.
layerId / lid int ../../../_images/edit.gif
  Layer ID used in conjunction with other edit flags. In query mode, this flag can accept a value.
layerName / ln unicode ../../../_images/query.gif ../../../_images/edit.gif
  Edit layer name. In query mode, return the layer name given its layer ID and clip ID.
mode / m int ../../../_images/edit.gif
  To control the playback speed of the clip by animation curve: 0 : additive1 : additive override2 : override3 : override passthrough
mute / mu bool ../../../_images/edit.gif
  Mute/unmute a layer given its layer ID and clip ID.
name / n bool ../../../_images/query.gif
  Query the attribute name of a layer given its layer ID and clip ID.
path / pt unicode ../../../_images/edit.gif
  Full path of a layer or a clip on which to operate. For example: composition1|track1|clip1|layer1; composition1|track1|group|track1|clip1. In query mode, this flag can accept a value.
removeAttribute / ra unicode ../../../_images/edit.gif
  Remove given plug from a layer with a supplied layerId.
removeLayer / rl bool ../../../_images/edit.gif
  Remove layer with an ID.
removeObject / ro unicode ../../../_images/edit.gif
  Remove given object with all its attributes in the clip to a layer with a supplied layerId.
resetSolo / rs bool ../../../_images/edit.gif
  Unsolo all soloed layers in a given clip ID.
setKeyframe / k bool ../../../_images/edit.gif
  Set keyframe on specified attributes on specified layer of a clip. Use -clipId to indicate the specified clip. Use -layerId to indicate the specified layer of the clip. Use -attribute to indicate the specified attributes (if no attribute flag is used, all attribute will be keyed). Use -zeroKeying to indicate that zero offset from original animation should be keyed.
solo / sl bool ../../../_images/edit.gif
  Solo/unsolo a layer given its layers ID and clip ID.
zeroKeying / zk bool ../../../_images/edit.gif
  Indicate if the key to set should be zero offset from original animation. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.timeEditorClipLayer

Example:

::

import pymel.core as pm

# Add an additive clip layer by clip ID pm.timeEditorClipLayer(e=True, clipId=1, addLayer=”Layer A”, mode=0)

# Add an additive clip layer by clip path pm.timeEditorClipLayer(e=True, path=’Composition1|track1|Group|track1|Clip1’, addLayer=”Layer A”, mode=0)

# Add an attribute to the given layer by clip ID and layer ID pm.timeEditorClipLayer(e=True, clipId=1, layerId=1, addAttribute=”cube.tx”)

# Add an attribute to the given layer by layer path pm.timeEditorClipLayer(e=True, path=’Composition1|track1|Clip1|Layer1’, addAttribute=”cube.tx”)

# Set key in the given layer pm.select(“cube”) pm.move(10, 0, 0, r=True) pm.timeEditorClipLayer(e=True, clipId=1, layerId=1, setKeyframe=True, attribute=”cube.tx”)

# Remove layer attribute pm.timeEditorClipLayer(e=True, clipId=1, layerId=1, removeAttribute=”cube.tx”)

# Query the layer name pm.timeEditorClipLayer(clipId=1, layerId=1, layerName=True, q=True)

# Remove the specified layer by clip ID and layer ID pm.timeEditorClipLayer(e=True, clipId=1, removeLayer=True, layerId=1);

# Remove the specified layer by layer path pm.timeEditorClipLayer(e=True, path=’Composition1|track1|Clip1|Layer1’, removeLayer=True);