Fix rigging for Unreal, cleanup animation file for Shelby, Tommy

This commit is contained in:
Alan O'Cull 2024-01-17 22:09:01 -05:00
parent 032e99590d
commit 8085fc38d4
6 changed files with 26 additions and 15 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
characters/insurrectionist/p5-baking.blend (Stored with Git LFS)

Binary file not shown.

View File

@ -21,10 +21,10 @@ fixList = [
'DEF-middle01.L',
'DEF-ring01.L',
'DEF-pinky01.L',
'DEF-palm.01.L',
'DEF-palm.02.L',
'DEF-palm.03.L',
'DEF-palm.04.L',
# Arms
'shoulder.L',
'breast.L',
# Legs
'DEF-thigh.L',
@ -38,11 +38,22 @@ for item in fixList:
# Pelvis parents work a little differently
reparent('DEF-pelvis.L', 'DEF-spine')
reparent('DEF-pelvis.R', 'DEF-spine')
# Deform parents on palms are actually parented to originals, so skip that layer
reparent('DEF-palm.01.L', 'DEF-hand.L')
reparent('DEF-palm.02.L', 'DEF-hand.L')
reparent('DEF-palm.03.L', 'DEF-hand.L')
reparent('DEF-palm.04.L', 'DEF-hand.L')
reparent('DEF-palm.01.R', 'DEF-hand.R')
reparent('DEF-palm.02.R', 'DEF-hand.R')
reparent('DEF-palm.03.R', 'DEF-hand.R')
reparent('DEF-palm.04.R', 'DEF-hand.R')
# Force axe to be exported by setting it as a deform bone
rig.data.edit_bones['axe'].use_deform = True
# Switch into POSE mode to set up animation constraints
bpy.ops.object.mode_set(mode='POSE')
## Declare Functions for animation constraints
def arrcopy(copyTo, copyFrom):
for i in range(min(len(copyTo), len(copyFrom))):