animate on -- setting rotations also offsetting and keying translation

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
  02 February 2009
animate on -- setting rotations also offsetting and keying translation

Hey there. So, I'm transferring data from one animated rig to a completely different animated rig. Translations seem to be working fine, but whenever I apply a key to the rotations using this code:


                     for animTime in animStart to animEnd do
                      (
   with animate on
    (
     at time animTime
      (
 	 p = inverse proxyName.transform.rotationPart
 	  orientName.rotation = p
      )
     )
                      ) 


I end up setting keys on the orientation and translation. Conceptually, I think I know what's going on (I could be wrong). Since the position of a rotated object in a hierarchy is also changing it's world position and "animate on" records changes associated with objects referenced within, it sets keys on position as well. Is there a way to isolate the keys to the rotation and avoid altering the translation? Maybe I'm not setting the right rotation value.

Any hints?

-- oh, and how the hell do I get [CODE] to display my code properly.

Thanks,

Alec

Last edited by ACFred : 02 February 2009 at 06:18 PM.
 
  02 February 2009
Look up "Node Transform Properties" in the Maxscript Help. At the bottom there is a script for world rotation without effecting the node position.

-Eric

Quote: -- oh, and how the hell do I get [CODE] to display my code properly.
Use quote instead.
__________________
"The Evil Monkey hiding in your closet."
 
  02 February 2009
Thread automatically closed

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.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 11:57 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.