This command creates and edits animation layers.
Long name (short name) | Argument Types | Properties | |
---|---|---|---|
addRelatedKG (akg) | bool | ||
|
|||
addSelectedObjects (aso) | bool | ||
|
|||
affectedLayers (afl) | bool | ||
|
|||
animCurves (anc) | bool | ||
|
|||
attribute (at) | unicode | ||
|
|||
baseAnimCurves (bac) | bool | ||
|
|||
bestAnimLayer (blr) | bool | ||
In query mode returns the best anim layers for keying for the selected objects. If used in conjunction with -at, will return the best anim layers for keying for the specific plugs (attributes) specified. |
|||
bestLayer (bl) | bool | ||
|
|||
blendNodes (bld) | bool | ||
|
|||
children (c) | unicode | ||
|
|||
collapse (col) | bool | ||
|
|||
copy (cp) | unicode | ||
|
|||
copyAnimation (ca) | unicode | ||
|
|||
copyNoAnimation (cna) | unicode | ||
|
|||
excludeBoolean (ebl) | bool | ||
|
|||
excludeDynamic (edn) | bool | ||
|
|||
excludeEnum (een) | bool | ||
|
|||
excludeRotate (ert) | bool | ||
|
|||
excludeScale (esc) | bool | ||
|
|||
excludeTranslate (etr) | bool | ||
|
|||
excludeVisibility (evs) | bool | ||
|
|||
exists (ex) | bool | ||
|
|||
extractAnimation (ea) | unicode | ||
|
|||
findCurveForPlug (fcv) | unicode | ||
finds the parameter curve containing the animation data for the specified plug on the given layer.Flag can appear in Create mode of commandFlag can have multiple arguments, passed either as a tuple or a list. |
|||
forceUIRebuild (fur) | bool | ||
|
|||
forceUIRefresh (uir) | bool | ||
|
|||
layeredPlug (lp) | unicode | ||
|
|||
lock (l) | bool | ||
|
|||
moveLayerAfter (mva) | unicode | ||
|
|||
moveLayerBefore (mvb) | unicode | ||
|
|||
mute (m) | bool | ||
|
|||
override (o) | bool | ||
|
|||
parent (p) | unicode | ||
|
|||
passthrough (pth) | bool | ||
|
|||
preferred (prf) | bool | ||
|
|||
removeAllAttributes (raa) | bool | ||
|
|||
removeAttribute (ra) | unicode | ||
|
|||
root (r) | unicode | ||
|
|||
selected (sel) | bool | ||
|
|||
solo (s) | bool | ||
|
|||
weight (w) | float | ||
|
|||
writeBlendnodeDestinations (wbd) | bool | ||
In edit mode writes the destination plugs of the blend nodes that belong to the layer into the blend node. This is used for layer import/export purposes and is not for general use. |
Derived from mel command maya.cmds.animLayer
Example:
import pymel.core as pm
pm.animLayer("layer1", mute=True, solo=True, override=True, passthrough=False, lock=True)
# Result: nt.AnimLayer(u'layer1') #
pm.animLayer("layer1", query=True, mute=True)
# Result: True #
pm.animLayer("layer1", query=True, solo=True)
# Result: True #
pm.animLayer("layer1", query=True, override=True)
# Result: True #
pm.animLayer("layer1", query=True, passthrough=True)
# Result: False #
pm.animLayer("layer1", query=True, lock=True)
# Result: True #
pm.animLayer("layer1", query=True, parent=True)
# Result: nt.AnimLayer(u'BaseAnimation') #