PDA

View Full Version : Active Rigid Bodies and getAttr -t


JontyC
09-24-2009, 10:31 AM
Having trouble using getAttr to grab an attribute at previous frame for an active body.

For example, if a new attribute p1 has an expression:

pCube1.p1 = `getAttr -t (frame-1) pCube1.translateX`;

this works fine whilst the body is passive, but when it's active, translateX returns the current X position, not the previous frame's.

I can sort of understand why it fails. getAttr would somehow have to access a previous state in the solver.

But a workaround?

(btw, an active rigid body doesn't have a predefined velocity attribute does it?)

Aikiman
09-29-2009, 03:28 AM
Baking keys works.

CGTalk Moderation
09-29-2009, 03:28 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.