PDA

View Full Version : mel: keyframe -query


john_homer
11-13-2002, 09:08 PM
hi all,
could someone please tell me why, when i do this...
string $timeRange = ("\"0:" + `currentTime -q` + "\"");
$a = `keyframe -time $timeRange -query -timeChange -valueChange L_wrist.lock`;

I get the error ...

// Error: line 3: Invalid time unit: "0:31" //

"0:31" is a valid time unit !!!

if i put in ...

$a = `keyframe -time "0:31" -query -timeChange -valueChange L_wrist.lock`;

that get a result..

.j

stunndman
11-13-2002, 09:22 PM
ok, i'm sorry but i can only guess - i don't have the patience to verify this

i think you should not add the quotes there

string $timeRange = ("\"0:" + `currentTime -q` + "\"");

try

string $timeRange = ("0:" + `currentTime -q`);

john_homer
11-14-2002, 01:06 AM
um... yeah.. nice one <blush>

i just thought cos the help has the time unit in quotes...

thanks.
.j

CGTalk Moderation
01-13-2006, 01:00 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.