Skip to content

Commit

Permalink
Merge pull request #459 from ynput/bugfix/maya_placeholder_set
Browse files Browse the repository at this point in the history
Maya: Account for no placeholder set.
  • Loading branch information
antirotor authored Apr 30, 2024
2 parents 76e43b3 + 701fcb9 commit e4c9466
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ def post_placeholder_process(self, placeholder, failed):
# Hide placeholder and add them to placeholder set
node = placeholder.scene_identifier

# If we just populate the placeholders from current scene, the
# placeholder set will not be created so account for that.
if not cmds.objExists(PLACEHOLDER_SET):
cmds.sets(name=PLACEHOLDER_SET, empty=True)

cmds.sets(node, addElement=PLACEHOLDER_SET)
cmds.hide(node)
cmds.setAttr(node + ".hiddenInOutliner", True)
Expand Down

0 comments on commit e4c9466

Please sign in to comment.