From f906d05c7305f123d8e037bd02e3d5742103883f Mon Sep 17 00:00:00 2001 From: Jakub Jezek Date: Mon, 13 Nov 2023 16:56:47 +0100 Subject: [PATCH 1/2] fusion: removing hardcoded template name for saver --- openpype/hosts/fusion/plugins/create/create_saver.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/openpype/hosts/fusion/plugins/create/create_saver.py b/openpype/hosts/fusion/plugins/create/create_saver.py index 2dc48f4b60a..e8ba2880a45 100644 --- a/openpype/hosts/fusion/plugins/create/create_saver.py +++ b/openpype/hosts/fusion/plugins/create/create_saver.py @@ -149,9 +149,13 @@ def _configure_saver_tool(self, data, tool, subset): # get frame padding from anatomy templates anatomy = Anatomy() - frame_padding = int( - anatomy.templates["render"].get("frame_padding", 4) - ) + render_anatomy_template = anatomy.templates.get("render") + if render_anatomy_template: + frame_padding = int( + render_anatomy_template.get("frame_padding", 4) + ) + else: + frame_padding = int(anatomy.templates.get("frame_padding", 4)) # Subset change detected workdir = os.path.normpath(legacy_io.Session["AVALON_WORKDIR"]) From 2b5c20e6e0beaf56767a000c09d09c8860d45d08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Je=C5=BEek?= Date: Tue, 14 Nov 2023 12:49:46 +0100 Subject: [PATCH 2/2] Update openpype/hosts/fusion/plugins/create/create_saver.py Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com> --- openpype/hosts/fusion/plugins/create/create_saver.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/openpype/hosts/fusion/plugins/create/create_saver.py b/openpype/hosts/fusion/plugins/create/create_saver.py index e8ba2880a45..ecf36abdd2e 100644 --- a/openpype/hosts/fusion/plugins/create/create_saver.py +++ b/openpype/hosts/fusion/plugins/create/create_saver.py @@ -149,13 +149,7 @@ def _configure_saver_tool(self, data, tool, subset): # get frame padding from anatomy templates anatomy = Anatomy() - render_anatomy_template = anatomy.templates.get("render") - if render_anatomy_template: - frame_padding = int( - render_anatomy_template.get("frame_padding", 4) - ) - else: - frame_padding = int(anatomy.templates.get("frame_padding", 4)) + frame_padding = anatomy.templates["frame_padding"] # Subset change detected workdir = os.path.normpath(legacy_io.Session["AVALON_WORKDIR"])