mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Changed to dot notation for clearer code
This commit is contained in:
parent
aad3325e04
commit
f2e782368f
1 changed files with 6 additions and 7 deletions
|
|
@ -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"
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue