Blender Kitsu: Move Render Review into Blender Kitsu #296
@ -491,6 +491,9 @@ class KITSU_addon_preferences(bpy.types.AddonPreferences):
|
|||||||
set=set_farm_dir,
|
set=set_farm_dir,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
##########################
|
||||||
|
# Render Review Settings
|
||||||
|
##########################
|
||||||
shot_name_filter: bpy.props.StringProperty( # type: ignore
|
shot_name_filter: bpy.props.StringProperty( # type: ignore
|
||||||
name="Shot Name Filter",
|
name="Shot Name Filter",
|
||||||
description="Shot name must include this string, otherwise it will be ignored",
|
description="Shot name must include this string, otherwise it will be ignored",
|
||||||
@ -506,6 +509,12 @@ class KITSU_addon_preferences(bpy.types.AddonPreferences):
|
|||||||
description="Only load video files for the latest versions by default, to avoid running out of memory and crashing",
|
description="Only load video files for the latest versions by default, to avoid running out of memory and crashing",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
skip_incomplete_renders: bpy.props.BoolProperty( # type:ignore
|
||||||
|
default=False,
|
||||||
|
name="Skip Incomplete Renders",
|
||||||
|
description="Skip renders that are shorter than the longest render for a give shot, (i.e. missing frames)",
|
||||||
|
)
|
||||||
|
|
||||||
versions_max_count: bpy.props.IntProperty(
|
versions_max_count: bpy.props.IntProperty(
|
||||||
name="Max Versions",
|
name="Max Versions",
|
||||||
description="Desired number of versions to load for each shot",
|
description="Desired number of versions to load for each shot",
|
||||||
|
@ -143,6 +143,11 @@ class RR_OT_sqe_create_review_session(bpy.types.Operator):
|
|||||||
strip_longest = imported_strips[-1]
|
strip_longest = imported_strips[-1]
|
||||||
prev_frame_end = strip_longest.frame_final_end
|
prev_frame_end = strip_longest.frame_final_end
|
||||||
|
|
||||||
|
if addon_prefs.skip_incomplete_renders:
|
||||||
|
for strip in imported_strips:
|
||||||
|
if strip.frame_final_duration < strip_longest.frame_final_duration:
|
||||||
|
context.scene.sequence_editor.sequences.remove(strip)
|
||||||
|
|
||||||
# Perform kitsu operations if enabled.
|
# Perform kitsu operations if enabled.
|
||||||
if prefs.session_auth(context) and imported_strips:
|
if prefs.session_auth(context) and imported_strips:
|
||||||
if opsdata.is_active_project():
|
if opsdata.is_active_project():
|
||||||
@ -391,6 +396,7 @@ class RR_OT_setup_review_workspace(bpy.types.Operator):
|
|||||||
|
|
||||||
layout.prop(self, 'sequence')
|
layout.prop(self, 'sequence')
|
||||||
if self.sequence != 'None':
|
if self.sequence != 'None':
|
||||||
|
layout.row().prop(addon_prefs, 'skip_incomplete_renders')
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.prop(addon_prefs, 'use_video')
|
row.prop(addon_prefs, 'use_video')
|
||||||
if addon_prefs.use_video:
|
if addon_prefs.use_video:
|
||||||
|
Loading…
Reference in New Issue
Block a user