ジャンプ先: 概要. 戻り値.
キーワード. 関連項目.
フラグ. Python 例.
animLayer([addSelectedObjects=boolean],
[affectedLayers=boolean],
[animCurves=boolean],
[attribute=string], [baseAnimCurves=boolean], [bestAnimLayer=boolean], [bestLayer=boolean], [blendNodes=boolean], [children=string], [collapse=boolean], [copy=string], [copyAnimation=string], [copyNoAnimation=string],
[excludeBoolean=boolean],
[excludeDynamic=boolean],
[excludeEnum=boolean],
[excludeRotate=boolean],
[excludeScale=boolean],
[excludeTranslate=boolean],
[excludeVisibility=boolean],
[exists=boolean], [extractAnimation=string],
[findCurveForPlug=string],
[forceUIRebuild=boolean],
[forceUIRefresh=boolean],
[layeredPlug=string],
[lock=boolean], [moveLayerAfter=string], [moveLayerBefore=string],
[mute=boolean], [override=boolean], [parent=string], [passthrough=boolean], [preferred=boolean], [removeAllAttributes=boolean],
[removeAttribute=string],
[root=string], [selected=boolean], [solo=boolean], [weight=float], [writeBlendnodeDestinations=
boolean])
注意:
オブジェクト名や引数を表す文字列はカンマで区切ります。これは概要には示されていません。
animLayer は 「元に戻す」が可能、「照会」が可能、「編集」が可能 です。
アニメーション レイヤを作成および編集します。
戻り値の型は照会モードでは照会フラグが基になります。
layer, animation, additive, override
blendTwoAttr, setKeyframe
addSelectedObjects, affectedLayers, animCurves, attribute, baseAnimCurves, bestAnimLayer, bestLayer, blendNodes, children, collapse,
copy, copyAnimation, copyNoAnimation, excludeBoolean, excludeDynamic, excludeEnum, excludeRotate, excludeScale, excludeTranslate, excludeVisibility, exists, extractAnimation, findCurveForPlug, forceUIRebuild, forceUIRefresh, layeredPlug, lock,
moveLayerAfter, moveLayerBefore, mute, override,
parent, passthrough, preferred, removeAllAttributes, removeAttribute, root, selected,
solo, weight,
writeBlendnodeDestinations
: コマンドの作成モードで使用可能なフラグ |
: コマンドの編集モードで使用可能なフラグ |
: コマンドの照会モードで使用可能なフラグ |
: タプルまたはリストとして渡された複数の引数を持てるフラグ |
import maya.cmds as cmds
cmds.animLayer("layer1", mute=True, solo=True, override=True, passthrough=False, lock=True)
cmds.animLayer("layer1", query=True, mute=True)
# Result: 1 #
cmds.animLayer("layer1", query=True, solo=True)
# Result: 1 #
cmds.animLayer("layer1", query=True, override=True)
# Result: 1 #
cmds.animLayer("layer1", query=True, passthrough=True)
# Result: 0 #
cmds.animLayer("layer1", query=True, lock=True)
# Result: 1 #
cmds.animLayer("layer1", query=True, parent=True)
# Result: BaseAnimation #