[Blender_Kitsu] Pub_Edit_Rev: Fix Filenames #13

Merged
Nick Alberelli merged 4 commits from :fix/publish-edit-rev-filename into master 2023-04-18 04:59:52 +02:00
Showing only changes of commit ba081eaec9 - Show all commits

View File

@ -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)
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
render_dir = bpy.path.abspath(self.render_dir)
@ -2498,7 +2498,8 @@ class KITSU_OT_vse_publish_edit_revision(bpy.types.Operator):
)
return {"CANCELLED"}
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 Sequence to .mp4