string $inTangentType = "linear";
string $outTangentType = "step";
// Convert all keys for selected in timeline to $outTangentType
int $minTime = `playbackOptions -q -minTime`;
int $maxTime = `playbackOptions -q -maxTime`;
string $minmaxTime = $minTime + ":" + $maxTime;
$sel = `ls -sl`;
keyTangent -inTangentType $inTangentType -outTangentType $outTangentType -time $minmaxTime $sel;
// set default key tangent to $outTangentType
keyTangent -global -ott $outTangentType;
March 4, 2010
KeyTangent Script
There are heaps of these kind of scripts around, but usually you want to make your own to suit the way you work. This script sets all keys for selected objects in the current time range to use preset tangent types, and also sets your default key tangent type as well. Lets me quickly bounce between stepped and plataeu modes while sketching out my animation, also good if you are working in a large timeline and don't want to trash your curves in finished sections.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment