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

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!

AttachmentSize
geteulerworldrotation.png88.17 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
miauu's picture

.

This way:

quatToEuler2 $.rotation.controller.value

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.