assets/characters/insurrectionist/post_rig.py
2023-12-09 20:52:23 -05:00

12 lines
269 B
Python

import bpy
rig = bpy.data.objects["insurrectionist"]
## FIX PARENTS
def reparent(b: str, newParent: str = 'DEF-spine'):
rig.data.edit_bones[b].parent = rig.data.edit_bones[newParent]
bpy.ops.object.mode_set(mode='EDIT')
pass
bpy.ops.object.mode_set(mode='POSE')