View Full Version : Question, expression: query where the object was two frames ago


Leionaaad
08 August 2008, 02:41 PM
Is there a way to query the transform of an object two frames ago, or before the actual frame in expressions?

NPuetz
08 August 2008, 04:19 PM
You can use the 'time' flag in the getAttr command to retrieve values at other values in time.

float $time = `currentTime -q`;
float $trans = `getAttr -t ($time - 2) "nurbsSphere1.tx"`;

CGTalk Moderation
08 August 2008, 04:19 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.


1