mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 21:32:15 +01:00
added kwargs noIntermediate to ignore intermediate shapes when collecting instances
This commit is contained in:
parent
b0dbc68234
commit
9dec69fc99
1 changed files with 2 additions and 1 deletions
|
|
@ -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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue