Notifications
Clear all

[Closed] get value form eulerAngles

Hi everybody

is there a way in maxscript to get the value of an axis of rotation in a contrained object using this way:

theObject.rotation as eulerAngles

---- value returned ----
(eulerAngles 0 0 -32.9993) <== I would like to get the Z value

Thanks.

2 Replies

EulerAngles has x, y and z properties. You can get them as follow:

theAngle = theObject.rotation as eulerAngles
 theAngle.x
 theAngle.y
 theAngle.z
 

so simple…
thanks!