Skip to content

Commit

Permalink
Merge pull request #146 from BigRoy/enhancement/usd_explicit_layer_sa…
Browse files Browse the repository at this point in the history
…ve_products_to_usd_layer_group

Group USD Explict Save Layer Products to "USD Layer" product group
  • Loading branch information
BigRoy authored Oct 29, 2024
2 parents beff26f + 23a0ec2 commit 366268c
Showing 1 changed file with 3 additions and 4 deletions.
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

0 comments on commit 366268c

Please sign in to comment.