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 ffff5b5ad7 - Show all commits

View File

@ -169,6 +169,11 @@ class SHOTBUILDER_OT_NewShotFile(bpy.types.Operator):
action = bpy.data.actions.new(f"ANI-{base_name}.{shot.name}.v001") action = bpy.data.actions.new(f"ANI-{base_name}.{shot.name}.v001")
action.use_fake_user = True action.use_fake_user = True
obj.animation_data.action = action obj.animation_data.action = action
# Set Shot Frame Range
start_frame_offset = 101 #TODO EXPOSE INT IN ADDON PREFERENCES
context.scene.frame_start = start_frame_offset
context.scene.frame_end = shot.nb_frames + start_frame_offset
return {'FINISHED'} return {'FINISHED'}
def draw(self, context: bpy.types.Context) -> None: def draw(self, context: bpy.types.Context) -> None: