Move Anim_Setup
module into Blender_Kitsu
#5
@ -316,6 +316,12 @@ class KITSU_addon_preferences(bpy.types.AddonPreferences):
|
||||
|
||||
)
|
||||
|
||||
edit_export_frame_offset: bpy.props.IntProperty( # type: ignore
|
||||
name="Editorial Export Offset",
|
||||
description="Shift Editorial Export by this frame-range after set-up.",
|
||||
default=-102, #HARD CODED FOR PET PROJECTS BLENDER FILM
|
||||
)
|
||||
|
||||
shot_builder_frame_offset: bpy.props.IntProperty( # type: ignore
|
||||
name="Start Frame Offset",
|
||||
description="All Shots built by 'Shot_builder' should begin at this frame",
|
||||
@ -424,6 +430,7 @@ class KITSU_addon_preferences(bpy.types.AddonPreferences):
|
||||
box.label(text="Shot Builder", icon="MOD_BUILD")
|
||||
box.row().prop(self, "edit_export_dir")
|
||||
box.row().prop(self, "edit_export_file_pattern")
|
||||
box.row().prop(self, "edit_export_frame_offset")
|
||||
box.row().prop(self, "shot_builder_show_advanced")
|
||||
if self.shot_builder_show_advanced:
|
||||
start_frame_row = box.row()
|
||||
|
@ -41,10 +41,11 @@ def editorial_export_get_latest(context:bpy.types.Context, shot) -> list[bpy.typ
|
||||
frame_in = shot["data"].get("frame_in")
|
||||
frame_3d_in = shot["data"].get("3d_in")
|
||||
frame_3d_offset = frame_3d_in - addon_prefs.shot_builder_frame_offset
|
||||
edit_export_offset = addon_prefs.edit_export_frame_offset
|
||||
|
||||
# Set sequence strip start kitsu data.
|
||||
for strip in new_strips:
|
||||
strip.frame_start = -frame_in + (strip_frame_start * 2) + frame_3d_offset
|
||||
strip.frame_start = -frame_in + (strip_frame_start * 2) + frame_3d_offset + edit_export_offset
|
||||
return new_strips
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user