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

Commit

Permalink
Allow to duplicate publish instances in Fusion, by not relying on `in…
Browse files Browse the repository at this point in the history
…stance_id` data but have the unique identifier be the node's name.
  • Loading branch information
BigRoy committed Aug 23, 2023
1 parent 5ff66af commit 6da94d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions openpype/hosts/fusion/plugins/create/create_saver.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def remove_instances(self, instances):
def _imprint(self, tool, data):
# Save all data in a "openpype.{key}" = value data

# Instance id is the tool's name so we don't need to imprint as data
data.pop("instance_id", None)

active = data.pop("active", None)
if active is not None:
# Use active value to set the passthrough state
Expand Down Expand Up @@ -192,6 +195,10 @@ def get_managed_tool_data(self, tool):
passthrough = attrs["TOOLB_PassThrough"]
data["active"] = not passthrough

# Override publisher's UUID generation because tool names are
# already unique in Fusion in a comp
data["instance_id"] = tool.Name

return data

def get_pre_create_attr_defs(self):
Expand Down

0 comments on commit 6da94d4

Please sign in to comment.