From 3a9109422d499f9ab843e1fa26f8a02c2d463f55 Mon Sep 17 00:00:00 2001 From: Ondrej Samohel Date: Fri, 28 Apr 2023 15:17:47 +0200 Subject: [PATCH] :art: update code from upstream --- openpype/pipeline/farm/tools.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/openpype/pipeline/farm/tools.py b/openpype/pipeline/farm/tools.py index 8cf1af399e..506f95d6b2 100644 --- a/openpype/pipeline/farm/tools.py +++ b/openpype/pipeline/farm/tools.py @@ -53,14 +53,11 @@ def from_published_scene(instance, replace_in_path=True): template_data["comment"] = None anatomy = instance.context.data['anatomy'] - anatomy_filled = anatomy.format(template_data) - template_filled = anatomy_filled["publish"]["path"] + template_obj = anatomy.templates_obj["publish"]["path"] + template_filled = template_obj.format_strict(template_data) file_path = os.path.normpath(template_filled) - self.log.info("Using published scene for render {}".format(file_path)) - if not os.path.exists(file_path): - self.log.error("published scene does not exist!") raise if not replace_in_path: @@ -102,8 +99,4 @@ def from_published_scene(instance, replace_in_path=True): new_scene) instance.data["publishRenderMetadataFolder"] = metadata_folder - self.log.info("Scene name was switched {} -> {}".format( - orig_scene, new_scene - )) - return file_path