View Full Version : bakeResults -time syntax

03 March 2005, 10:11 PM
I'm trying to use the bakeResults command and for the flag "-time" I would like to use variables. The sytax for -time is as follows:

bakeResults -t "0:100";

It indicates an upper and lower limit respectively. What I can't figure out is the syntax for using variables, say from a user input, instead of raw integers. Thanks ya'll

03 March 2005, 11:53 PM
you need to put it in a string, then evaluate that....

int $start = 0;
int $end = 100;
string $cmd = ("bakeResults -t \"" + $start +":" + $end + "\"");
eval $cmd;

I dont have maya on this PC to test that, hopefully the syntax is right... looks it to me :)


03 March 2005, 04:56 AM
thank you thank you thank you - worked perfect

CGTalk Moderation
03 March 2005, 04:56 AM
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.