mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
added explicit attribute check
This commit is contained in:
parent
5ef5bd15a4
commit
b1151924ad
1 changed files with 2 additions and 5 deletions
|
|
@ -28,13 +28,10 @@ class ValidateUniqueNodeIds(pyblish.api.InstancePlugin):
|
|||
# Collect each id with their members
|
||||
ids = defaultdict(list)
|
||||
for member in instance:
|
||||
try:
|
||||
object_id = cmds.getAttr("{}.{}".format(member, uuid_attr))
|
||||
except Exception as exception:
|
||||
# Object will node have the attribute so skip
|
||||
cls.log.debug(exception)
|
||||
if not cmds.attributeQuery(uuid_attr, node=member, exists=True):
|
||||
continue
|
||||
|
||||
object_id = cmds.getAttr("{}.{}".format(member, uuid_attr))
|
||||
ids[object_id].append(member)
|
||||
|
||||
# Skip those without IDs (if everything should have an ID that should
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue