🐛 handle cancelled dialog

This commit is contained in:
Ondrej Samohel 2023-06-12 12:44:12 +02:00
parent d345b3e1b1
commit e9d60c96f5
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -35,6 +35,7 @@ MS_CUSTOM_ATTRIB = """attributes "openPypeData"
(
current_selection = selectByName title:"Select Objects to add to
the Container" buttontext:"Add"
if current_selection == undefined then return False
temp_arr = #()
i_node_arr = #()
for c in current_selection do
@ -52,8 +53,10 @@ MS_CUSTOM_ATTRIB = """attributes "openPypeData"
(
current_selection = selectByName title:"Select Objects to remove
from the Container" buttontext:"Remove"
if current_selection == undefined then return False
temp_arr = #()
i_node_arr = #()
for c in current_selection do
(
node_ref = NodeTransformMonitor node:c