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!
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!
