introduce a condition to exclude the unneccessary node attributes during collecting looks

This commit is contained in:
Kayla Man 2022-08-02 20:09:58 +08:00
parent 2a0e377ff4
commit 7f356587e3

View file

@ -551,11 +551,9 @@ class CollectLook(pyblish.api.InstancePlugin):
if cmds.getAttr(attribute, type=True) == "message":
continue
node_attributes[attr] = cmds.getAttr(attribute)
# Only include if there are any properties we care about
if not node_attributes:
continue
attributes.append({"name": node,
"uuid": lib.get_id(node),
"attributes": node_attributes})