mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Merge pull request #345 from r42-chun/max_track_objects_by_id
3dsMax: Track by handles then object name
This commit is contained in:
commit
d8d85c53ca
1 changed files with 4 additions and 4 deletions
|
|
@ -240,10 +240,10 @@ 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(
|
||||||
for obj in rt.Objects:
|
container.modifiers[0].openPypeData, "all_handles")
|
||||||
if str(obj) in sel_list:
|
for node_transform_monitor in node_transform_monitor_list:
|
||||||
node_list.append(obj)
|
node_list.append(node_transform_monitor.node)
|
||||||
return node_list
|
return node_list
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue