Go to: Return value. Related commands. Flags. Examples.
clip
[-startTime time]
[-endTime time]
[-name string]
[-newName string]
[-active string]
[-animCurveRange toggle]
[-absolute boolean]
[-absoluteRotations boolean]
[-allAbsolute toggle]
[-allRelative toggle]
[-rotationsAbsolute toggle]
[-defaultAbsolute toggle]
[-remove toggle]
[-duplicate toggle]
[-scheduleClip boolean]
[-leaveOriginal toggle]
[-copy toggle]
[-paste toggle]
[-pasteInstance toggle]
[-split time]
[-mapMethod string]
[-isolate toggle]
[-sourceClipName toggle]
[-allClips toggle]
[-allSourceClips toggle]
[-addTrack toggle]
[-removeTrack toggle]
[-useChannel string]
[-ignoreSubcharacters toggle]
[-character toggle]
[-constraint toggle]
[-expression toggle]
clip is undoable, queryable, and editable .
string[] clip names
absolute, absoluteRotations, active, addTrack, allAbsolute, allClips, allRelative, allSourceClips, animCurveRange, character, constraint, copy, defaultAbsolute, duplicate, endTime, expression, ignoreSubcharacters, isolate, leaveOriginal, mapMethod, name, newName, paste, pasteInstance, remove, removeTrack, rotationsAbsolute, scheduleClip, sourceClipName, split, startTime, useChannel
// 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";