From 04f004038189272bf7c2e4bebe1ad6b6b79d82a0 Mon Sep 17 00:00:00 2001 From: Nick Alberelli Date: Thu, 1 Feb 2024 11:59:20 -0500 Subject: [PATCH] Render Review: Fix File Delimiter --- scripts-blender/addons/render_review/ops.py | 5 +++-- scripts-blender/addons/render_review/vars.py | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts-blender/addons/render_review/ops.py b/scripts-blender/addons/render_review/ops.py index 9a27f62e..3dc9bc70 100644 --- a/scripts-blender/addons/render_review/ops.py +++ b/scripts-blender/addons/render_review/ops.py @@ -911,6 +911,7 @@ class RR_OT_sqe_push_to_edit(bpy.types.Operator): return context.window_manager.invoke_props_dialog(self, width=width) def get_edit_filepath(self, strip: bpy.types.Sequence) -> Path: + delimiter = vars.DELIMITER render_dir = opsdata.get_strip_folder(strip) shot_previews_dir = opsdata.get_shot_previews_path(strip) @@ -931,7 +932,7 @@ class RR_OT_sqe_push_to_edit(bpy.types.Operator): if ( file.name.replace(version, "") - == f"{opsdata.get_shot_dot_task_type(render_dir)}..mp4" + == f"{opsdata.get_shot_dot_task_type(render_dir)}{delimiter}.mp4" ): existing_files.append(file) @@ -945,7 +946,7 @@ class RR_OT_sqe_push_to_edit(bpy.types.Operator): # Compose edit filepath of new mp4 file. edit_filepath = ( shot_previews_dir - / f"{opsdata.get_shot_dot_task_type(render_dir)}.{increment}.mp4" + / f"{opsdata.get_shot_dot_task_type(render_dir)}{delimiter}{increment}.mp4" ) return edit_filepath diff --git a/scripts-blender/addons/render_review/vars.py b/scripts-blender/addons/render_review/vars.py index aa58e794..056ce5b6 100644 --- a/scripts-blender/addons/render_review/vars.py +++ b/scripts-blender/addons/render_review/vars.py @@ -22,3 +22,4 @@ RESOLUTION = (2048, 858) VERSION_PATTERN = r"v\d\d\d" FPS = 24 +DELIMITER = "-" -- 2.30.2