A bone was rotated 90 degrees on the Y axis.
I simply want to get (0, 90, 0), but in Blender it is represented by Euler angles (86.4, 44.9, 66.3).
How do I get rotation on the global axis In Python code?
import bpy obj = bpy.data.objects["Armature"] for pbone in obj.pose.bones: rotate_x = pbone.rotation_euler.x ##1.5072393417358398 (Euler) rotate_y = pbone.rotation_euler.y ##0.7828118801116943 (Euler) rotate_z = pbone.rotation_euler.z ##1.1571569442749023 (Euler) ''' rotate_x _y _z are all euler angles of Bone. But I want to get these as below. It will be rotate_x = 0 rotate_y = 1.5708(or 90) rotate_z = 0 because rotate 90 degrees on Axis Y. '''