Temporarily disable baking for animation export script

This commit is contained in:
Alan O'Cull 2024-03-23 12:31:33 -04:00
parent 288079652f
commit dc800c99a6
2 changed files with 30 additions and 7 deletions

View File

@ -0,0 +1,23 @@
Animation Team
Elite:
- Flying (Neutral)
- Tennis serve/toss stratagem up
Infantry:
- Flinch Animations
- Right front shoulder
- Left front shoulder
- Stomach or chest
- Back
- Melee Fall
- Ranged Run Cycle
- hold gun up for this
Insurrectionist:
- Flinch Animations
- Right front shoulder
- Left front shoulder
- Stomach or chest
- Back

View File

@ -29,17 +29,17 @@ for i in range(29,32):
armature.layers[i] = True
# Use BoneJuice to bake down all actions
bpy.ops.bj.anim_bakeall()
# bpy.ops.bj.anim_bakeall()
# Make armature local so we can clear all constraints
bpy.ops.object.mode_set(mode='OBJECT')
bpy.ops.object.make_local(type='SELECT_OBDATA')
# bpy.ops.object.mode_set(mode='OBJECT')
# bpy.ops.object.make_local(type='SELECT_OBDATA')
# Clear all posing and pose constraints
bpy.ops.object.mode_set(mode='POSE') # Enter pose mode
bpy.ops.pose.select_all(action='SELECT')
bpy.ops.pose.constraints_clear() # Clear all constraints
bpy.ops.pose.transforms_clear() # Clear all transforms
# bpy.ops.object.mode_set(mode='POSE') # Enter pose mode
# bpy.ops.pose.select_all(action='SELECT')
# bpy.ops.pose.constraints_clear() # Clear all constraints
# bpy.ops.pose.transforms_clear() # Clear all transforms
# Export animations
bpy.ops.export_scene.fbx(