ジャンプ先: 概要. 戻り値. 関連. フラグ. Python 例.
autoKeyframe([characterOption=string], [noReset=boolean], [state=boolean])
注: オブジェクトの名前と引数を表す文字列は、カンマで区切る必要があります。これはシノプシスに示されていません。
autoKeyframe は、取り消し可能、照会可能、および編集可能です。
フラグがない場合、このコマンドは、「autoKeyframe -state on」コマンドの発行後に変更された、すべてのアトリビュートにキーフレームを設定します。修正されたアトリビュートの追跡を中止する場合は、「autoKeyframe -state off」を使用します。autoKeyframe は新しいアニメーション カーブを作成しません。アトリビュートは(setKeyframe コマンドで)キーフレーム設定され、修正されたアトリビュートに autoKeyframe で新しいキーフレームを追加する必要があります。
「autoKeyframe -query -state」で、autoKeyframing の現在の状態を照会することもできます。
int | キーフレーム セットの数。 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
characterOption(co)
|
string
|
![]() ![]() ![]() |
||
|
||||
noReset(nr)
|
boolean
|
![]() ![]() |
||
|
||||
state(st)
|
boolean
|
![]() ![]() ![]() |
||
|
![]() |
![]() |
![]() |
![]() |
import maya.cmds as cmds # Start remembering attributes that have changed # cmds.autoKeyframe( state=True ) # Set a keyframe for all attributes that have changed # since the last "autoKeyframe( state=True ) # cmds.autoKeyframe() # Stop remembering attributes that have changed. # Note that Subsequent "autoKeyframe" commands # (with no flags) will have no effect until an # autoKeyframe( state=True ) command is executed. # cmds.autoKeyframe( state=False ) # When auto-keying, key all character attributes, not just # those that have changed. # cmds.autoKeyframe( characterOption="all" )