Skip to content

Instantly share code, notes, and snippets.

@LewisGet
Created September 5, 2024 08:02
Show Gist options
  • Save LewisGet/18737c767ae92efdbbe507b3e08f19e1 to your computer and use it in GitHub Desktop.
Save LewisGet/18737c767ae92efdbbe507b3e08f19e1 to your computer and use it in GitHub Desktop.
import bpy
from math import radians
bpy.ops.object.mode_set(mode='POSE')
for bone in bpy.data.objects['body_structure'].pose.bones:
bone.rotation_mode = 'XYZ'
bone.rotation_euler = (radians(0), radians(0), radians(0))
bpy.context.view_layer.update()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment