mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Merge pull request #2725 from pypeclub/feature/tvpaint_ls_returns_object_name
TVPaint: Set objectName with members
This commit is contained in:
commit
3118fb42d2
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