[Blender_Kitsu] Pub_Edit_Rev: Fix Filenames #13
@ -2487,7 +2487,7 @@ class KITSU_OT_vse_publish_edit_revision(bpy.types.Operator):
|
|||||||
|
|
||||||
existing_previews = gazu.edit.get_all_previews_for_edit(self.edit_entry)
|
existing_previews = gazu.edit.get_all_previews_for_edit(self.edit_entry)
|
||||||
len_previews = get_dict_len(existing_previews)
|
len_previews = get_dict_len(existing_previews)
|
||||||
revision = set_revision_int(len_previews)
|
revision = str(set_revision_int(len_previews)).zfill(3)
|
||||||
|
|
||||||
# Build render_path
|
# Build render_path
|
||||||
render_dir = bpy.path.abspath(self.render_dir)
|
render_dir = bpy.path.abspath(self.render_dir)
|
||||||
@ -2498,7 +2498,8 @@ class KITSU_OT_vse_publish_edit_revision(bpy.types.Operator):
|
|||||||
)
|
)
|
||||||
return {"CANCELLED"}
|
return {"CANCELLED"}
|
||||||
edit_entry = gazu.edit.get_edit(self.edit_entry)
|
edit_entry = gazu.edit.get_edit(self.edit_entry)
|
||||||
render_name = f"{active_project.name}_{edit_entry.get('name')}_v{revision}.mp4"
|
prod_name = active_project.name.lower().replace(' ', '')
|
||||||
|
render_name = f"{prod_name}_v{revision}.mp4"
|
||||||
render_path = Path(render_dir).joinpath(render_name)
|
render_path = Path(render_dir).joinpath(render_name)
|
||||||
|
|
||||||
# Render Sequence to .mp4
|
# Render Sequence to .mp4
|
||||||
|
Loading…
Reference in New Issue
Block a user