PDA

View Full Version : lil' rotation problem


TiSna
03-31-2008, 01:02 PM
hi everybody
i dunnot understand why, but when i wanna create a rotation key with Maxscript, by simply doing : with animate on (
at time 4 $.rotation = (eulerangles 14 1 4)
)
it create also a key on the position controller!!! :(
i could just tell it to delete these keys, but i prefer to make it not create pos keys at all.

i know i could also make something like "rotate $ (eulerangles 14 1 4)", but i don't wanna give it an angle to rotate from, but specify directly to it its value.

thanks for helping

phoelix
03-31-2008, 01:54 PM
Try setting the value of the rotation controller:

with animate on (
at time 4 $.rotation.controller.value = (eulerangles 14 1 4)
)
but that way you're setting the rotation respect to the parent.

To do it respect to world you could try the next (if the object has a parent):

with animate on (
at time 4 $.rotation.controller.value = ((eulerangles 14 1 4) as quat)* inverse $.parent.transform.rotation
)

TiSna
03-31-2008, 02:28 PM
eh eh thanks !! :)

CGTalk Moderation
03-31-2008, 02:28 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.