okey, I´ll try to explain. Usually, in my scripts I uses sys.exit()
So, if have a script that requires something to be selected, and nothing is
selected, what I do is cmds.warning ("please select something") and then
sys.exit()
this works perfectly fine if I execute " manually" the script, but in a
Pyside UI ( I followed this tutorial
http://www.brechtos.com/using-qt-designer-pyside-create-maya-2014-editor-windows/
)
when I connect that script to a button click, after the warning, maya
closes. I don´t think it is a crash, because I don´t get any window error.
isn´t that weird?
--
You received this message because you are subscribed to the Google Groups
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/6d340e44-527a-4158-af25-7d2585204ad5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.