mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Track m handles then object name
This commit is contained in:
parent
e31343bcf9
commit
d820b96295
1 changed files with 3 additions and 4 deletions
|
|
@ -240,10 +240,9 @@ def get_previous_loaded_object(container: str):
|
||||||
node_list(list): list of nodes which are previously loaded
|
node_list(list): list of nodes which are previously loaded
|
||||||
"""
|
"""
|
||||||
node_list = []
|
node_list = []
|
||||||
sel_list = rt.getProperty(container.modifiers[0].openPypeData, "sel_list")
|
node_transform_monitor_list = rt.getProperty(container.modifiers[0].openPypeData, "all_handles")
|
||||||
for obj in rt.Objects:
|
for node_transform_monitor in node_transform_monitor_list:
|
||||||
if str(obj) in sel_list:
|
node_list.append(node_transform_monitor.node)
|
||||||
node_list.append(obj)
|
|
||||||
return node_list
|
return node_list
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue