Render Review: Fix File Delimiter #224
@ -911,6 +911,7 @@ class RR_OT_sqe_push_to_edit(bpy.types.Operator):
|
|||||||
return context.window_manager.invoke_props_dialog(self, width=width)
|
return context.window_manager.invoke_props_dialog(self, width=width)
|
||||||
|
|
||||||
def get_edit_filepath(self, strip: bpy.types.Sequence) -> Path:
|
def get_edit_filepath(self, strip: bpy.types.Sequence) -> Path:
|
||||||
|
delimiter = vars.DELIMITER
|
||||||
render_dir = opsdata.get_strip_folder(strip)
|
render_dir = opsdata.get_strip_folder(strip)
|
||||||
shot_previews_dir = opsdata.get_shot_previews_path(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 (
|
if (
|
||||||
file.name.replace(version, "")
|
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)
|
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.
|
# Compose edit filepath of new mp4 file.
|
||||||
edit_filepath = (
|
edit_filepath = (
|
||||||
shot_previews_dir
|
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
|
return edit_filepath
|
||||||
|
|
||||||
|
@ -22,3 +22,4 @@
|
|||||||
RESOLUTION = (2048, 858)
|
RESOLUTION = (2048, 858)
|
||||||
VERSION_PATTERN = r"v\d\d\d"
|
VERSION_PATTERN = r"v\d\d\d"
|
||||||
FPS = 24
|
FPS = 24
|
||||||
|
DELIMITER = "-"
|
||||||
|
Loading…
Reference in New Issue
Block a user