quick help with "currentTime"
hi!
I would need some actionButtons to save myself some time.
basically I just want to query the current time and asign this integer value to a variable.
this is my action:
bakeResults -simulation true -t "0:2769" -sampleBy 1 -disableImplicitControl true -preserveOutsideKeys false -sparseAnimCurveBake true -at "tx" -at "ty" -at "tz" |Hips;
and I need to replace "0:2769" with "0:$time" or something.
and I need help because
$time = currentTime -query;
print $time;
bakeResults -simulation true -t "0:$time" -sampleBy 1 -disableImplicitControl true -preserveOutsideKeys false -sparseAnimCurveBake true -at "tx" -at "ty" -at "tz" |Hips;
I am just too stupid after all
// Error: $time = currentTime -query; //
// Error: Line 1.21: Invalid use of Maya object "currentTime". //
// Error: $time = currentTime -query; //
// Error: Line 1.27: Invalid use of Maya object "query". //
everything starts and ends in the right place at the right time.