Move Anim_Setup module into Blender_Kitsu #5

Merged
Nick Alberelli merged 27 commits from :feature/merge_anim_setup_into_blender_kitsu into master 2023-04-05 17:38:41 +02:00
Showing only changes of commit c996cf3a20 - Show all commits

View File

@ -161,6 +161,14 @@ class SHOTBUILDER_OT_NewShotFile(bpy.types.Operator):
bpy.ops.asset_setup.load_latest_edit() bpy.ops.asset_setup.load_latest_edit()
# Load Anim Workspace # Load Anim Workspace
bpy.ops.anim_setup.setup_workspaces() bpy.ops.anim_setup.setup_workspaces()
shot = cache.shot_active_get()
# Initilize armatures
for obj in [obj for obj in bpy.data.objects if obj.type == "ARMATURE"]:
base_name = obj.name.split('RIG-')[-1] #BLEDNER-STUDIO NAMING CONVENTION
action = bpy.data.actions.new(f"ANI-{base_name}.{shot.name}.v001")
action.use_fake_user = True
obj.animation_data.action = action
return {'FINISHED'} return {'FINISHED'}
def draw(self, context: bpy.types.Context) -> None: def draw(self, context: bpy.types.Context) -> None: