PDA

View Full Version : bakeResults -time syntax


Scott212
03-24-2005, 09: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

john_homer
03-24-2005, 10: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 :)

.j

Scott212
03-25-2005, 03:56 AM
thank you thank you thank you - worked perfect

CGTalk Moderation
03-25-2005, 03: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.