Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Collect USD Layers refactor and transfer productGroup to the extra product #59

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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