0
$\begingroup$

I am tired of manually switching from Quaternion rotation mode to XYZ euler mode for every bone. Is there anyway to accelerate this process? Any help would be appreciated!

$\endgroup$

1 Answer 1

3
$\begingroup$

Here is a script that will change all the pose bone rotation mode to the value set for to_mode in this case 'XYZ' for XYZ Euler Rotation on the active (context) object.

import bpy
from bpy import context

to_mode = 'XYZ'
arm = context.object

for pb in arm.pose.bones:
    pb.rotation_mode = to_mode

Possibly more useful to use context.selected_pose_bones which will set the mode only for those pose bones selected.

import bpy
from bpy import context

to_mode = 'XYZ'

for pb in context.selected_pose_bones:
    pb.rotation_mode = to_mode
$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .