Bases: MayaInstancePlugin
Validate if set dress top root node is published.
Source code in client/ayon_maya/plugins/publish/validate_setdress_root.py
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 | class ValidateSetdressRoot(plugin.MayaInstancePlugin):
"""Validate if set dress top root node is published."""
order = ValidateContentsOrder
label = "SetDress Root"
families = ["setdress"]
def process(self, instance):
from maya import cmds
if instance.data.get("exactSetMembersOnly"):
return
set_member = instance.data["setMembers"]
root = cmds.ls(set_member, assemblies=True, long=True)
if not root or root[0] not in set_member:
raise PublishValidationError(
"Setdress top root node is not being published."
)
|