Bases: InstancePlugin
Ensures that there is an display node with Top/Display.
Will be used for automatic review creation
Source code in client/ayon_harmony/plugins/publish/validate_review_source.py
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30 | class ValidateTopDisplay(pyblish.api.InstancePlugin):
"""Ensures that there is an display node with `Top/Display`.
Will be used for automatic review creation
"""
order = pyblish.api.ValidatorOrder
label = "Validate Top Display"
families = ["review"]
hosts = ["harmony"]
settings_category = "harmony"
def process(self, instance):
display_node_name = harmony.send(
{"function": "node.getName", "args": "Top/Display"}
)["result"]
if not display_node_name:
raise PublishXmlValidationError(
self, "No display node named 'Top/Display'."
)
instance.data["display_node_name"] = display_node_name
|