MEL How-To #29 | ||
| ||
How can I get Maya to execute a command as soon as a window is closed?The ‘
window -title "Close Me" myWindow;
showWindow myWindow;
// Use a scriptJob to pop up a farewell message when the window is closed
scriptJob -uiDeleted myWindow "confirmDialog -message \"Buh-bye!\"";
The scriptJob is automatically deleted with its associated UI. | ||
Copyright ©2005 by Bryan Ewert, maya@ewertb.com Maya is a Registered Trademark of Alias |