Notifications
Clear all

[Closed] animate and rotation controller

Hi,

Can someone explain me this behave ?

When I do

with animate on at time t myDummy.rotation = angleaxis angle [x,y,z]

Max creates a key for the rotation controller at time t, ok… but it ALSO creates a position controller at this time, which I do not want… Doing this with myDummy.pos only creates me a position controller.

What is the best way to assign rotation keys with angleAxis values ? Do I have to change the default Euler XYZ controller for a TCB rotation ?

3 Replies

Use the ROTATE() method instead.


 with animate on at time 10 rotate $ (angleaxis 30  [0,0,1])

Yes… but no

If my object orientation is zero, it’s equivalent, but if my object is already rotated it is not.
I don’t want to rotate my object relatively to its previous position, but I want to place it in a defined orientation.

Well, if it may help, I found out how to rotate, in my case by the absolute value:


	 rotAtual = ($.rotation as eulerAngles).y --Will return the Y axis' rotation
	 rotTotal = rotAtual - rotValue --Object's rotation - the angle I want it to rotate to
	 rotate $ (angleaxis rotTotal [0,1,0]) --Rotate on Y axis