mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
pass members to objectName
This commit is contained in:
parent
3bc8ae4e3b
commit
8d8b5136d7
1 changed files with 9 additions and 1 deletions
|
|
@ -377,7 +377,15 @@ def _write_instances(*args, **kwargs):
|
|||
|
||||
|
||||
def ls():
|
||||
return get_workfile_metadata(SECTION_NAME_CONTAINERS)
|
||||
output = get_workfile_metadata(SECTION_NAME_CONTAINERS)
|
||||
if output:
|
||||
for item in output:
|
||||
if "objectName" not in item and "members" in item:
|
||||
members = item["members"]
|
||||
if isinstance(members, list):
|
||||
members = "|".join(members)
|
||||
item["objectName"] = members
|
||||
return output
|
||||
|
||||
|
||||
def on_instance_toggle(instance, old_value, new_value):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue