Blender Kitsu: Move Render Review into Blender Kitsu #296

Merged
Showing only changes of commit f7a78d9a66 - Show all commits

View File

@ -399,6 +399,15 @@ class RR_OT_setup_review_workspace(bpy.types.Operator):
layout.prop(addon_prefs, 'shot_name_filter') layout.prop(addon_prefs, 'shot_name_filter')
def execute(self, context: bpy.types.Context) -> Set[str]: def execute(self, context: bpy.types.Context) -> Set[str]:
render_dir = context.scene.rr.render_dir
if not Path(render_dir).exists():
self.report(
{"ERROR"},
f"Farm Output Directory {render_dir} doesn't exist, check Add-On preferences",
)
return {"CANCELLED"}
scripts_path = bpy.utils.script_paths(use_user=False)[0] scripts_path = bpy.utils.script_paths(use_user=False)[0]
template_path = "/startup/bl_app_templates_system/Video_Editing/startup.blend" template_path = "/startup/bl_app_templates_system/Video_Editing/startup.blend"
ws_filepath = Path(scripts_path + template_path) ws_filepath = Path(scripts_path + template_path)