Skip to content

Commit

Permalink
Containerise and parse container with project_name parm
Browse files Browse the repository at this point in the history
  • Loading branch information
BigRoy committed Nov 26, 2024
1 parent 64596e5 commit 8b76f1e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions client/ayon_houdini/api/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ def containerise(name,
"namespace": namespace,
"loader": str(loader),
"representation": context["representation"]["id"],
"project_name": context["project"]["name"]
}

lib.imprint(container, data)
Expand Down Expand Up @@ -285,6 +286,13 @@ def parse_container(container):
pass
data[name] = value

# Support project name in container as optional attribute
for name in ["project_name"]:
parm = container.parm(name)
if not parm:
continue
data[name] = parm.eval()

# Backwards compatibility pre-schemas for containers
data["schema"] = data.get("schema", "openpype:container-1.0")

Expand Down

0 comments on commit 8b76f1e

Please sign in to comment.