Skip to content

Commit

Permalink
Merge pull request #59 from BigRoy/bugfix/houdini_usd_collect_usd_lay…
Browse files Browse the repository at this point in the history
…ers_refactor

Fix Collect USD Layers refactor and transfer `productGroup` to the extra product
  • Loading branch information
BigRoy authored Aug 6, 2024
2 parents 93e9810 + 8c828b8 commit dbeb041
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 dbeb041

Please sign in to comment.