mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-25 05:14:40 +01:00
removing the node references successfully in the parameter
This commit is contained in:
parent
0a0c374ee1
commit
15dd1e13b6
1 changed files with 6 additions and 2 deletions
|
|
@ -56,6 +56,8 @@ MS_CUSTOM_ATTRIB = """attributes "openPypeData"
|
|||
if current_selection == undefined then return False
|
||||
temp_arr = #()
|
||||
i_node_arr = #()
|
||||
new_temp_arr = #()
|
||||
new_i_node_arr = #()
|
||||
|
||||
for c in current_selection do
|
||||
(
|
||||
|
|
@ -65,15 +67,17 @@ MS_CUSTOM_ATTRIB = """attributes "openPypeData"
|
|||
if idx do
|
||||
(
|
||||
DeleteItem all_nodes idx
|
||||
for i in all_nodes do append new_i_node_arr i
|
||||
)
|
||||
idx = finditem list_node.items handle_name
|
||||
if idx do
|
||||
(
|
||||
DeleteItem list_node.items idx
|
||||
for i in list_node.items do append new_temp_arr i
|
||||
)
|
||||
)
|
||||
all_handles = i_node_arr
|
||||
list_node.items = temp_arr
|
||||
all_handles = new_i_node_arr
|
||||
list_node.items = new_temp_arr
|
||||
)
|
||||
|
||||
on OPparams open do
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue