From 9dec69fc996a8acc861ea5127059a7362c68d2fb Mon Sep 17 00:00:00 2001 From: aardschok Date: Mon, 2 Oct 2017 14:47:19 +0200 Subject: [PATCH] added kwargs noIntermediate to ignore intermediate shapes when collecting instances --- colorbleed/plugins/maya/publish/collect_instances.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/colorbleed/plugins/maya/publish/collect_instances.py b/colorbleed/plugins/maya/publish/collect_instances.py index 1bcafa2351..58da0e4ea9 100644 --- a/colorbleed/plugins/maya/publish/collect_instances.py +++ b/colorbleed/plugins/maya/publish/collect_instances.py @@ -96,7 +96,8 @@ class CollectInstances(pyblish.api.ContextPlugin): children = cmds.listRelatives(members, allDescendents=True, - fullPath=True) or [] + fullPath=True, + noIntermediate=True) or [] parents = self.get_all_parents(members) members_hierarchy = list(set(members + children + parents))