PDA

View Full Version : Transform in time (API)


Piddu
04-15-2007, 07:30 PM
Hi there. Is it possible to get the transformation matrix of an object in time?
I mena if I'm at frame 20 and I want to get the transformation matrix at frame 10, how could I do that?

Thanks for help. :P

Bye

Robert Bateman
04-16-2007, 09:49 AM
If it's for a command or exporter, use an MFnDagNode and get an MDagPath from it (MFnDagNode::getPath). the inclusiveMatrix() function of MDagPath will then return the world space matrix. Just use MAnimControl or MGlobal::viewFrame() to set the appropriate time.

If it's for a custom node then adda a matrix attr to your node and connect it to the worldMatrix attribute of the transform you want to query.

CGTalk Moderation
04-16-2007, 09:49 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.