From d6434f3ef952c3d1755db5d8e160aa236246e1e0 Mon Sep 17 00:00:00 2001 From: Roy Nieterau Date: Sun, 27 Oct 2024 14:06:56 +0100 Subject: [PATCH] USD Explicit Save Layer products should go into the `USD Layer` product group similar to how USD contribution workflow does that. --- client/ayon_houdini/plugins/publish/collect_usd_layers.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/client/ayon_houdini/plugins/publish/collect_usd_layers.py b/client/ayon_houdini/plugins/publish/collect_usd_layers.py index 9d3459f084..71b46f47d2 100644 --- a/client/ayon_houdini/plugins/publish/collect_usd_layers.py +++ b/client/ayon_houdini/plugins/publish/collect_usd_layers.py @@ -137,8 +137,6 @@ def process(self, instance): layer_inst.data["instance_node"] = instance.data["instance_node"] layer_inst.data["render"] = False layer_inst.data["output_node"] = creator_node - if instance.data.get("productGroup"): - layer_inst.data["productGroup"] = instance.data["productGroup"] # Inherit "use handles" from the source instance # TODO: Do we want to maybe copy full `publish_attributes` instead? @@ -148,8 +146,9 @@ def process(self, instance): ) # Allow this subset to be grouped into a USD Layer on creation - layer_inst.data["subsetGroup"] = "USD Layer" - + layer_inst.data["productGroup"] = ( + instance.data.get("productGroup") or "USD Layer" + ) # For now just assume the representation will get published representation = { "name": "usd",