ジャンプ先: 概要. 戻り値. キーワード. 関連. フラグ. MEL 例.
clip [-absolute boolean] [-absoluteRotations boolean] [-active string] [-addTrack] [-allAbsolute] [-allClips] [-allRelative] [-allSourceClips] [-animCurveRange] [-character] [-constraint] [-copy] [-defaultAbsolute] [-duplicate] [-endTime time] [-expression] [-ignoreSubcharacters] [-isolate] [-leaveOriginal] [-mapMethod string] [-name string] [-newName string] [-paste] [-pasteInstance] [-remove] [-removeTrack] [-rotationOffset float float float] [-rotationsAbsolute] [-scheduleClip boolean] [-sourceClipName] [-split time] [-startTime time] [-translationOffset float float float] [-useChannel string]
clip は、取り消し可能、照会可能、および 編集可能 です。
このコマンドを使用して、キャラクタ クリップを作成、編集、照会します。string[] | クリップ名 |
照会モードでは、戻り値のタイプは照会されたフラグに基づきます。
ロング ネーム(ショート ネーム) | 引数タイプ | プロパティ | ||
---|---|---|---|---|
-startTime(-s)
|
time
|
|||
|
||||
-endTime(-end)
|
time
|
|||
|
||||
-name(-n)
|
string
|
|||
|
||||
-newName(-nn)
|
string
|
|||
|
||||
-active(-a)
|
string
|
|||
|
||||
-animCurveRange(-acr)
|
|
|||
|
||||
-absolute(-abs)
|
boolean
|
|||
|
||||
-absoluteRotations(-abr)
|
boolean
|
|||
|
||||
-allAbsolute(-aa)
|
|
|||
|
||||
-allRelative(-ar)
|
|
|||
|
||||
-rotationsAbsolute(-ra)
|
|
|||
|
||||
-defaultAbsolute(-da)
|
|
|||
|
||||
-remove(-rm)
|
|
|||
|
||||
-duplicate(-d)
|
|
|||
|
||||
-scheduleClip(-sc)
|
boolean
|
|||
|
||||
-leaveOriginal(-lo)
|
|
|||
|
||||
-copy(-c)
|
|
|||
|
||||
-paste(-p)
|
|
|||
|
||||
-pasteInstance(-pi)
|
|
|||
|
||||
-split(-sp)
|
time
|
|||
|
||||
-mapMethod(-mm)
|
string
|
|||
|
||||
-isolate(-i)
|
|
|||
|
||||
-sourceClipName(-scn)
|
|
|||
|
||||
-allClips(-ac)
|
|
|||
|
||||
-allSourceClips(-asc)
|
|
|||
|
||||
-addTrack(-at)
|
|
|||
|
||||
-removeTrack(-rt)
|
|
|||
|
||||
-useChannel(-uc)
|
string
|
|||
|
||||
-ignoreSubcharacters(-is)
|
|
|||
|
||||
-character(-ch)
|
|
|||
|
||||
-constraint(-cn)
|
|
|||
|
||||
-expression(-ex)
|
|
|||
|
||||
-translationOffset(-tof)
|
float float float
|
|||
|
||||
-rotationOffset(-rof)
|
float float float
|
|||
|
フラグはコマンドの作成モードで表示できます | フラグはコマンドの編集モードで表示できます |
フラグはコマンドの照会モードで表示できます | コマンド内でフラグを複数回使用できます。 |
// First, create a character to hold the clips. The character will be // a 3-bone skeleton named "arm". // select -d; joint -p 0 0 0 ; joint -p 0 4 0 ; joint -e -zso -oj xyz joint1; joint -p 0 8 -1 ; joint -e -zso -oj xyz joint2; joint -p 0 9 -2 ; joint -e -zso -oj xyz joint3; select -r joint1 joint2 joint3; character -name arm; // Create some animation for the character. For this example the animation will // be quite trivial. // select -r joint3; currentTime 0; setKeyframe joint3.rx; currentTime 10; setKeyframe -v 90 joint3.rx; currentTime 20; setKeyframe -v 0 joint3.rx; // Create a clip for the current animation named "handWave" // clip -startTime 0 -endTime 20 -name "handWave" "arm"; // Create a 2nd animation for the character. // select -r joint2; currentTime 0; setKeyframe joint2.rx; setKeyframe -v 20 joint2.ry; currentTime 10; setKeyframe -v 45 joint2.rx; setKeyframe -v -20 joint2.ry; currentTime 20; setKeyframe -v 0 joint2.rx; setKeyframe -v 20 joint2.ry; // Create a clip for the current animation named "elbowWave" // clip -startTime 0 -endTime 20 -name "elbowWave" "arm"; // Query the existing source clips // clip -q -n "arm"; // Result: handWaveSource elbowWaveSource // // Query the active clip. Note that the default clip is always active unless // another clip has been specified as active. This means that new keyframes // always go into the default clip unless you make another clip active. // clip -q -active "arm"; // Result: default // // Change the name of a clip from handWaveSource to wiggle on a character named "arm" // clip -name "handWaveSource" -newName "wiggle" "arm"; // Duplicate the clip named "elbowWaveSource" on the character named "arm" and // place the duplicate in the schedule at a start time of 50 // clip -duplicate -name "elbowWaveSource" -s 50 "arm"; // Duplicate the clip named "wiggle" on the character named "arm" and // do not place the duplicate in the schedule // clip -duplicate -name "wiggle" -sc false "arm"; // Remove the clip from the character altogether. All instances of the clip will be // removed from the schedule and deleted from the library. // clip -rm -name "elbowWaveSource" "arm"; // Make the handWave clip active. This means that any new keyframes get // placed in the handWave clip, and modifications to existing handWave // keyframes can be made. // clip -edit -active "handWave" "arm"; // Split the clip named "handWave" into two clips at time 10 // clip -split 10 -name "handWave" "arm"; // Query the startTime of a clip. This is the start frame of the animation // curve range of the clip, and may differ from the scheduled time of the clip, // which is accessed using the clipSchedule command. // clip -name "handWave" -q -s "arm";