Skip to content

Commit

Permalink
Keeps loaded nodes in placeholder's set
Browse files Browse the repository at this point in the history
  • Loading branch information
BenoitConnan authored and ClementHector committed Feb 8, 2022
1 parent 34ff85d commit 07057e8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions openpype/hosts/maya/api/template_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,14 @@ def parent_in_hierarchy(self, containers):
cmds.reorder(node, front=True)
cmds.reorder(node, relative=index)

node = self.data['node']
holding_sets = cmds.listSets(object=node)
if not holding_sets:
return
for set in holding_sets:
cmds.sets(roots, forceElement=set)
cmds.sets(node, remove=set)

def clean(self):
"""Hide placeholder
parent them to root
Expand Down

0 comments on commit 07057e8

Please sign in to comment.