From f2e782368fe5a135c1d01f4ee6a85fe8840e0f94 Mon Sep 17 00:00:00 2001 From: Jacob Danell Date: Sat, 18 Mar 2023 19:30:13 +0100 Subject: [PATCH] Changed to dot notation for clearer code --- ...nce.py => validate_expected_frames_existence.py} | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) rename openpype/hosts/fusion/plugins/publish/{validate_existing_frames_existence.py => validate_expected_frames_existence.py} (87%) diff --git a/openpype/hosts/fusion/plugins/publish/validate_existing_frames_existence.py b/openpype/hosts/fusion/plugins/publish/validate_expected_frames_existence.py similarity index 87% rename from openpype/hosts/fusion/plugins/publish/validate_existing_frames_existence.py rename to openpype/hosts/fusion/plugins/publish/validate_expected_frames_existence.py index a43d2c691a..e74eb82366 100644 --- a/openpype/hosts/fusion/plugins/publish/validate_existing_frames_existence.py +++ b/openpype/hosts/fusion/plugins/publish/validate_expected_frames_existence.py @@ -9,11 +9,11 @@ from openpype.hosts.fusion.api.action import SelectInvalidAction class ValidateLocalFramesExistence(pyblish.api.InstancePlugin): """Checks if files for savers that's set - to publish existing frames exists + to publish expected frames exists """ order = pyblish.api.ValidatorOrder - label = "Validate Existing Frames Exists" + label = "Validate Expected Frames Exists" families = ["render"] hosts = ["fusion"] actions = [RepairAction, SelectInvalidAction] @@ -71,13 +71,12 @@ class ValidateLocalFramesExistence(pyblish.api.InstancePlugin): def repair(cls, instance): invalid = cls.get_invalid(instance) if invalid: - data = invalid[0].GetData("openpype") + tool = invalid[0] # Change render target to local to render locally - data["creator_attributes"]["render_target"] = "local" + tool.SetData("openpype.creator_attributes.render_target", "local") - invalid[0].SetData("openpype", data) - cls.log.error( - f"Reload the publisher and {invalid[0].Name} " + cls.log.info( + f"Reload the publisher and {tool.Name} " "will be set to render locally" )