Blender Kitsu: Move Render Review into Blender Kitsu #296
@ -491,6 +491,9 @@ class KITSU_addon_preferences(bpy.types.AddonPreferences):
|
||||
set=set_farm_dir,
|
||||
)
|
||||
|
||||
##########################
|
||||
# Render Review Settings
|
||||
##########################
|
||||
shot_name_filter: bpy.props.StringProperty( # type: ignore
|
||||
name="Shot Name Filter",
|
||||
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",
|
||||
)
|
||||
|
||||
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(
|
||||
name="Max Versions",
|
||||
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]
|
||||
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.
|
||||
if prefs.session_auth(context) and imported_strips:
|
||||
if opsdata.is_active_project():
|
||||
@ -391,6 +396,7 @@ class RR_OT_setup_review_workspace(bpy.types.Operator):
|
||||
|
||||
layout.prop(self, 'sequence')
|
||||
if self.sequence != 'None':
|
||||
layout.row().prop(addon_prefs, 'skip_incomplete_renders')
|
||||
row = layout.row()
|
||||
row.prop(addon_prefs, 'use_video')
|
||||
if addon_prefs.use_video:
|
||||
|
Loading…
Reference in New Issue
Block a user