ScriptSpot

Forum topic · General Scripting

How to get an objects world rotation in Euler X Y Z coordinates, so it matches the visible rotation values?

By pixhellmann · 2017-08-21

Downloads
Description

Hi,

my problem is, I cant get a correct rotation value like we see them in the 3ds Max transform info panel. I know that Max works internally with Quaternions, but it's to complex for me to understand.

Check the screenshot to see what I mean.
I need to output the rotation as [-26.742, 24.927, -38.81]

I hope someone knows how to do this. Thanks!

Comments (1)

.

miauu · 2017-08-21

This way:


quatToEuler2 $.rotation.controller.value