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

Group USD Explict Save Layer Products to "USD Layer" product group #146

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
7 changes: 3 additions & 4 deletions client/ayon_houdini/plugins/publish/collect_usd_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand All @@ -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",
Expand Down