PDA

View Full Version : key at current frame in the time line


sean3dmonkey
08-13-2008, 11:44 PM
Hello, I'm trying to figure out how to write a mel line that will key the current frame the time line is set to. Is this possible, does any one know how to write it?

~mike~
08-14-2008, 07:03 AM
can you write a situation or elaborate your problem....

ooorc46
08-14-2008, 07:26 AM
setKeyframe ball.translateX;

This will solve your pro, refer to maya help for more advanced pro.

sean3dmonkey
08-14-2008, 02:46 PM
I'm trying to write a mel script that will constrain some joints together, set a key on the transition and rotation channels at the current frame the timeline is set to,( it could be any random frame), then delete the constraints.

ooorc46
08-15-2008, 03:32 AM
your can serve the time:

setKeyframe -attribute ball.translateX -t 0sec -t 10sec ball;

For your situation, you can try to use maya's constraints, then bake animation on constrainted objs, after that you can delete the constraints.

sean3dmonkey
08-15-2008, 03:38 PM
Thank you. I"ll try it. I never considered bake all the keys to the timeline then deleting the constraints.


Thanks, ooorc46. :)

CGTalk Moderation
08-15-2008, 03:38 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.