Go to: Return value. Related commands. Flags. Examples.
bakeClip
[-clipIndex uint]
[-blend uint_uint]
[-name string]
[-keepOriginals toggle]
bakeClip is undoable, NOT queryable, and NOT editable .
[string] clip name
blend, clipIndex, keepOriginals, name
// First create a simple character. // cone -n bakeCone; character -n coneCharacter; // Create some animation. // select -r bakeCone; currentTime 0; setKeyframe -v 0 bakeCone.tx; currentTime 10; setKeyframe -v 10 bakeCone.tx; // Make a clip. // clip -startTime 0 -endTime 10 -name "up" "coneCharacter"; // Create a second clip. // select -r bakeCone; currentTime 15; setKeyframe -v 15 bakeCone.tx; currentTime 25; setKeyframe -v 0 bakeCone.tx; // Make a clip. // clip -startTime 15 -endTime 25 -name "down" "coneCharacter"; // Blend the clips, with a linear weighting function. // string $scheduler = `character -q -sc "coneCharacter"`; clipSchedule -b 0 1 $scheduler; string $blendNode[] = `clipSchedule -bn 0 1 -q $scheduler`; setKeyframe -at weight -t 0.0 -v 0.0 $blendNode[0]; setKeyframe -at weight -t 1.0 -v 1.0 $blendNode[0]; // Bake out the two clips and the blend. // bakeClip -ci 0 -ci 1 -name "bakedUpAndDown" "coneCharacter";