skipping locators in validator

This commit is contained in:
wijnand 2018-06-11 10:08:13 +02:00
parent 015b8b7e2d
commit 1b99fdf88f

View file

@ -36,6 +36,7 @@ class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin):
"""Get all nodes which do not match the criteria"""
invalid = []
types_to_skip = ["locator"]
# get asset id
nodes = instance.data.get("out_hierarchy", instance[:])
@ -50,6 +51,10 @@ class ValidateOutRelatedNodeIds(pyblish.api.InstancePlugin):
if not obj_type:
continue
# Skip specific types
if cmds.objectType(node) in types_to_skip:
continue
# Get the current id of the node
node_id = lib.get_id(node)
if not node_id: