Merge branch 'develop' into enhancement/AY-2612-resolve-adaptation-colorbleed-plugins

This commit is contained in:
Jakub Ježek 2024-06-12 11:32:26 +02:00 committed by GitHub
commit ca8d7075a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 101 additions and 94 deletions

View file

@ -145,7 +145,27 @@ attributes "OpenPypeContext"
rt.saveMaxFile(dst_path)
def ls() -> list:
def parse_container(container):
"""Return the container node's full container data.
Args:
container (str): A container node name.
Returns:
dict: The container schema data for this container node.
"""
data = lib.read(container)
# Backwards compatibility pre-schemas for containers
data["schema"] = data.get("schema", "openpype:container-3.0")
# Append transient data
data["objectName"] = container.Name
return data
def ls():
"""Get all AYON containers."""
objs = rt.objects
containers = [
@ -156,7 +176,7 @@ def ls() -> list:
]
for container in sorted(containers, key=attrgetter("name")):
yield lib.read(container)
yield parse_container(container)
def on_new():