Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Commit

Permalink
Allow duplicating publish instances in Maya by not storin instance id…
Browse files Browse the repository at this point in the history
… as an attribute but using the (unique) node's name instead.
  • Loading branch information
BigRoy committed Aug 23, 2023
1 parent b6e9806 commit 5ff66af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openpype/hosts/maya/api/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def imprint_instance_node(self, node, data):
# We never store the instance_node as value on the node since
# it's the node name itself
data.pop("instance_node", None)
data.pop("instance_id", None)

# We store creator attributes at the root level and assume they
# will not clash in names with `subset`, `task`, etc. and other
Expand Down Expand Up @@ -185,6 +186,7 @@ def read_instance_node(self, node):

# Explicitly re-parse the node name
node_data["instance_node"] = node
node_data["instance_id"] = node

return node_data

Expand Down

0 comments on commit 5ff66af

Please sign in to comment.