Can I get bone rotate on global axis?
About below code, It’s just get the rotate one bone from a Armature.
import bpy
obj = bpy.data.objects["Armature"].bones["Bone001"]
rotate_x = obj.rotation_euler.x
rotate_y = obj.rotation_euler.y
rotate_z = obj.rotation_euler.z
Normally, If rotate -90 degrees on GLOBAL Y AXIS
, that makes (0,-90,0) xyz(of course ~XYZ EULER~ is available) values.
But on blender, always return LOCAL
values (86.4,44.9,66.3)
On python, I want to get Global axis euler angles.
But how can i get that?