PDA

View Full Version : MEL-Q: Reach values in another frame


fr3drik
01-08-2003, 01:13 PM
Is it possible to retrieve the X value of an item in another frame than the one I'm currently in?

For example I'm currently on frame 50 but need to reach the X value of pCube1 in frame 20;
pCube1.translateX = frame(20, pCube1.translateX);

...or do I have to create an array of my past X values, that I access later on?

sunit
01-08-2003, 11:29 PM
Originally posted by fr3drik
Is it possible to retrieve the X value of an item in another frame than the one I'm currently in?

For example I'm currently on frame 50 but need to reach the X value of pCube1 in frame 20;
pCube1.translateX = frame(20, pCube1.translateX);

...or do I have to create an array of my past X values, that I access later on?

you can do this via the getAttr command. just add a -time flag, so, say you want to get the attribute sphere.translateX at frame 14:

getAttr -t 14 sphere.translateX


-sunit

fr3drik
01-09-2003, 09:13 AM
Great! Thanks, I'll try that! :)

CGTalk Moderation
01-14-2006, 03:00 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.