Move Anim_Setup
module into Blender_Kitsu
#5
@ -169,6 +169,11 @@ class SHOTBUILDER_OT_NewShotFile(bpy.types.Operator):
|
||||
action = bpy.data.actions.new(f"ANI-{base_name}.{shot.name}.v001")
|
||||
action.use_fake_user = True
|
||||
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'}
|
||||
|
||||
def draw(self, context: bpy.types.Context) -> None:
|
||||
|
Loading…
Reference in New Issue
Block a user