Blender Kitsu: Move Render Review into Blender Kitsu #296
@ -406,13 +406,6 @@ class RR_OT_setup_review_workspace(bpy.types.Operator):
|
|||||||
|
|
||||||
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
|
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"
|
||||||
@ -425,6 +418,13 @@ class RR_OT_setup_review_workspace(bpy.types.Operator):
|
|||||||
# Pre-fill render directory with farm output shots directory.
|
# Pre-fill render directory with farm output shots directory.
|
||||||
addon_prefs = prefs.addon_prefs_get(bpy.context)
|
addon_prefs = prefs.addon_prefs_get(bpy.context)
|
||||||
context.scene.rr.render_dir = addon_prefs.farm_output_dir + "/shots"
|
context.scene.rr.render_dir = addon_prefs.farm_output_dir + "/shots"
|
||||||
|
if not Path(render_dir).exists():
|
||||||
|
self.report(
|
||||||
|
{"ERROR"},
|
||||||
|
f"Farm Output Directory {render_dir} doesn't exist, check Add-On preferences",
|
||||||
|
)
|
||||||
|
|
||||||
|
return {"CANCELLED"}
|
||||||
|
|
||||||
# Init sqe.
|
# Init sqe.
|
||||||
if not context.scene.sequence_editor:
|
if not context.scene.sequence_editor:
|
||||||
|
Loading…
Reference in New Issue
Block a user