From 1b99fdf88f2ccb9126ca8cbcf415a4618ebbca30 Mon Sep 17 00:00:00 2001 From: wijnand Date: Mon, 11 Jun 2018 10:08:13 +0200 Subject: [PATCH] skipping locators in validator --- .../publish/validate_animation_out_set_related_node_ids.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/colorbleed/plugins/maya/publish/validate_animation_out_set_related_node_ids.py b/colorbleed/plugins/maya/publish/validate_animation_out_set_related_node_ids.py index 6aa39efe07..63705dd3ba 100644 --- a/colorbleed/plugins/maya/publish/validate_animation_out_set_related_node_ids.py +++ b/colorbleed/plugins/maya/publish/validate_animation_out_set_related_node_ids.py @@ -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: