PDA

View Full Version : BakeResults


xcomb
10-05-2007, 11:45 AM
Hi i was wandering how to bake via mel and specifying my startTime variable and endTime!
Here is simple code that i can't get solved.
Original code:
bakeResults -simulation true -t "1:24" -sampleBy 1 -disableImplicitControl true -preserveOutsideKeys true -sparseAnimCurveBake false -controlPoints false -shape true {"nurbsSphere1"};
I would like to replace the string "1:24" but not sure how to get around this.

//Doesn't work the bellow code
string $startFrame = `playbackOptions -q -min`;
string $endFrame = `playbackOptions -q -max`;
bakeResults -simulation true -t "$startFrame:$endFrame" -sampleBy 1 -disableImplicitControl true -preserveOutsideKeys true -sparseAnimCurveBake false -controlPoints false -shape true {"nurbsSphere1"};

Thanks forward!

Segmoria
10-05-2007, 01:27 PM
Just use this for the -t flag instead and it should be ok, everything else seems right.

-t (($startFrame) + ":" + ($endFrame))

xcomb
10-05-2007, 01:51 PM
WoW how full i am :)
Thank you very much!

xcomb
10-05-2007, 01:54 PM
:) sorry double post

CGTalk Moderation
10-05-2007, 01:54 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.