How to get euler angle of the prim through script with script editor

When I’m using issacsim, first I add an object, then I apply the rigid body and collision properties to it.After clicking the play button, the only thing that represents the object’s attitude property is orient in the property. However i see the rotate in the property when i have not press the play button.But I need to press the play button and would like to get the Euler angles directly, e.g., like rotate:xyz through script via script editor . How can I do this?



@gaozhao22 take a look at the matrix decomposition by @mati-nvidia where he was able to extrapolate transform, rotation (in Euler), and scale:

you can watch his breakdown as well in a VOD (since the snippet showed two ways to get rotations):

regarding the orient vs rotation in more detail:

I am sure there are other ways to get the information you are looking for, so i’ll let others chime in 🙂

2 Likes