ジャンプ先: 概要. 戻り値. 関連. フラグ. MEL 例.
setDrivenKeyframe [-attribute string] [-controlPoints boolean] [-count] [-currentDriver string] [-driven] [-driver] [-driverValue float] [-hierarchy string] [-inTangentType string] [-insert] [-insertBlend boolean] [-outTangentType string] [-shape boolean] [-value float]
[objects]
setDrivenKeyframe は、取り消し可能、照会可能、および編集可能です。
このコマンドは、ドリブン キーフレームを設定します。ドリブン キーフレームは、通常のキーフレームと似ています。ただし、標準キーフレームではグラフ エディタ(Graph Editor)の X 軸が常に時間に設定されているのに対して、drivenkeyframe の場合、グラフ エディタの X 軸としてユーザが任意のアトリビュートを選択することができます。int | キーフレーム設定の数 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
-attribute(-at)
|
string
|
![]() ![]() |
||
|
||||
-controlPoints(-cp)
|
boolean
|
![]() |
||
|
||||
-count(-cnt)
|
|
![]() |
||
|
||||
-currentDriver(-cd)
|
string
|
![]() ![]() |
||
|
||||
-driven(-dn)
|
|
![]() |
||
|
||||
-driver(-dr)
|
|
![]() |
||
|
||||
-driverValue(-dv)
|
float
|
![]() ![]() |
||
|
||||
-hierarchy(-hi)
|
string
|
![]() |
||
|
||||
-inTangentType(-itt)
|
string
|
![]() |
||
|
||||
-insert(-i)
|
|
![]() |
||
|
||||
-insertBlend(-ib)
|
boolean
|
![]() |
||
|
||||
-outTangentType(-ott)
|
string
|
![]() |
||
|
||||
-shape(-s)
|
boolean
|
![]() |
||
|
||||
-value(-v)
|
float
|
![]() |
||
|
![]() |
![]() |
![]() |
![]() |
// Create a curve and a cone to use in the example // string $path = `curve -d 3 -p -10 0 0 -p -6 0 10 -p -3 0 -10 -p 10 0 0 -k 0 -k 0 -k 0 -k 1 -k 1 -k 1`; polyCone; // To set the keyframe on the selected object's translateX based on // curve1's rotateZ: // setDrivenKeyframe -at translateX -cd curve1.rz; // To set the keyframe on pCone1.tx based on the value of curve1.rz: // setDrivenKeyframe -cd curve1.rz pCone1.tx; // To query the current driver of pCone1.tx: // setDrivenKeyframe -q -cd pCone1.tx; // To query the current driver count of pCone1.tx: // setDrivenKeyframe -q -cnt -cd pCone1.tx; // To query the available drivers of pCone1.tx: // setDrivenKeyframe -q -dr pCone1.tx; // To query the count of available drivers of pCone1.tx: // setDrivenKeyframe -q -cnt -dr pCone1.tx;