PDA

View Full Version : Need a mel script!Help


ozzinator
12-14-2011, 01:22 AM
thank you for all the help

Nyro
12-17-2011, 03:16 PM
string $objects[] = `ls -sl -type "transform"`;

if(size($objects) == 1) {

string $obj = $objects[0];
$animCurves = `listConnections -d 1 -type "animCurve" $obj`;

if(size($animCurves)) {

for($curve in $animCurves) {

print("Keyframes on " + $curve + ":\n");
float $keyTimes[] = `keyframe -q -tc $curve`;

for($time in $keyTimes) {

float $value[] = `keyframe -t $time -q -vc $curve`;

print("Frame " + $time + ": " + $value[0] + "\n");
}
}
}
}


Enjoy.

CGTalk Moderation
12-17-2011, 03:16 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.