Move Anim_Setup
module into Blender_Kitsu
#5
@ -161,6 +161,14 @@ class SHOTBUILDER_OT_NewShotFile(bpy.types.Operator):
|
||||
bpy.ops.asset_setup.load_latest_edit()
|
||||
# Load Anim Workspace
|
||||
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'}
|
||||
|
||||
def draw(self, context: bpy.types.Context) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user