rubble
10-05-2007, 04:59 PM
Hi,
I'm kind of new to MEL, and I was wondering if someone could point me in the right direction with a UI I'm working on.
Basically, I want to be able to close a window and perform an action at the same time.
I was following this thread:
http://forums.cgsociety.org/showthread.php?f=89&t=287203&highlight=multiple+commands
which seems to be very much like what I wanted, except that my "OK" function is a string.
Here's what I've got:
$Window = `window -title "Window"
-iconName "Locator"
-widthHeight 200 50`;
columnLayout;
$OK = ("deleteUI " + $Window);
button -label "OK" -command $OK;
showWindow $Window;
global proc Proc2( )
{
spaceLocator -p 0 0 0;
}
How do I get it to run Proc2 while closing the window?
Thanks in advance for the help.
I'm kind of new to MEL, and I was wondering if someone could point me in the right direction with a UI I'm working on.
Basically, I want to be able to close a window and perform an action at the same time.
I was following this thread:
http://forums.cgsociety.org/showthread.php?f=89&t=287203&highlight=multiple+commands
which seems to be very much like what I wanted, except that my "OK" function is a string.
Here's what I've got:
$Window = `window -title "Window"
-iconName "Locator"
-widthHeight 200 50`;
columnLayout;
$OK = ("deleteUI " + $Window);
button -label "OK" -command $OK;
showWindow $Window;
global proc Proc2( )
{
spaceLocator -p 0 0 0;
}
How do I get it to run Proc2 while closing the window?
Thanks in advance for the help.
