From 9741d47fbc7c03d20cbc775f61ae19e321bb631c Mon Sep 17 00:00:00 2001 From: Jacob Danell Date: Tue, 14 Mar 2023 17:19:19 +0100 Subject: [PATCH] Added crude repair functionality --- .../publish/validate_local_frames_existence.py | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/openpype/hosts/fusion/plugins/publish/validate_local_frames_existence.py b/openpype/hosts/fusion/plugins/publish/validate_local_frames_existence.py index c1cba795e1..4b50e0b837 100644 --- a/openpype/hosts/fusion/plugins/publish/validate_local_frames_existence.py +++ b/openpype/hosts/fusion/plugins/publish/validate_local_frames_existence.py @@ -67,5 +67,14 @@ class ValidateLocalFramesExistence(pyblish.api.InstancePlugin): @classmethod def repair(cls, instance): invalid = cls.get_invalid(instance) - for tool in invalid: - tool.SetInput("CreateDir", 1.0) + if invalid: + data = invalid[0].GetData("openpype") + + # Change render target to local to render locally + data["creator_attributes"]["render_target"] = "local" + + invalid[0].SetData("openpype", data) + cls.log.error( + f"Reload the publisher and {invalid[0].Name} " + "will be set to render locally" + )