Skip to content

Commit

Permalink
Fix Collect USD Layers logic + transfer productGroup to the extra p…
Browse files Browse the repository at this point in the history
…roduct
  • Loading branch information
BigRoy committed Aug 2, 2024
1 parent 5699808 commit 51a0417
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions client/ayon_houdini/plugins/publish/collect_usd_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def process(self, instance):

project_name = context.data["projectName"]
variant_base = instance.data["variant"]
subset = get_product_name(
product_name = get_product_name(
project_name=project_name,
# TODO: This should use task from `instance`
task_name=context.data["anatomyData"]["task"]["name"],
Expand All @@ -125,17 +125,20 @@ def process(self, instance):
project_settings=context.data["project_settings"]
)

label = "{0} -> {1}".format(instance.data["name"], subset)
label = "{0} -> {1}".format(instance.data["name"], product_name)
family = "usd"
layer_inst.data["family"] = family
layer_inst.data["families"] = [family]
layer_inst.data["subset"] = subset
layer_inst.data["productName"] = product_name
layer_inst.data["productType"] = instance.data["productType"]
layer_inst.data["label"] = label
layer_inst.data["asset"] = instance.data["asset"]
layer_inst.data["folderPath"] = instance.data["folderPath"]
layer_inst.data["task"] = instance.data.get("task")
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?
Expand Down

0 comments on commit 51a0417

Please sign in to comment.