Notifications
Clear all
[Closed] lil' rotation problem
Mar 31, 2008 2: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
2 Replies
Mar 31, 2008 2:02 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
)