mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #638 from ynput/bugfix/fix_scene_inventory_issue_not_shown_up_3dsmax
Max: fix scene inventory not shown up
This commit is contained in:
commit
bd539d9795
1 changed files with 22 additions and 2 deletions
|
|
@ -145,7 +145,27 @@ attributes "OpenPypeContext"
|
||||||
rt.saveMaxFile(dst_path)
|
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."""
|
"""Get all AYON containers."""
|
||||||
objs = rt.objects
|
objs = rt.objects
|
||||||
containers = [
|
containers = [
|
||||||
|
|
@ -156,7 +176,7 @@ def ls() -> list:
|
||||||
]
|
]
|
||||||
|
|
||||||
for container in sorted(containers, key=attrgetter("name")):
|
for container in sorted(containers, key=attrgetter("name")):
|
||||||
yield lib.read(container)
|
yield parse_container(container)
|
||||||
|
|
||||||
|
|
||||||
def on_new():
|
def on_new():
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue