westiemad
10-23-2006, 09:19 AM
Hi Guys,
If you save this out to a mel file and then source it in maya, when you click the button you get an error because it won't source the local proc in the same file, if you do this without the button etc it'll work. Anyone know how to get this to work, I've had a quick go with evals and can't get it?
proc test()
{
print "works\n";
}
global proc buttonPress()
{
window -width 150;
columnLayout -adjustableColumn true;
button -label Default -c test;
showWindow;
}
Cheers
AnDy.
If you save this out to a mel file and then source it in maya, when you click the button you get an error because it won't source the local proc in the same file, if you do this without the button etc it'll work. Anyone know how to get this to work, I've had a quick go with evals and can't get it?
proc test()
{
print "works\n";
}
global proc buttonPress()
{
window -width 150;
columnLayout -adjustableColumn true;
button -label Default -c test;
showWindow;
}
Cheers
AnDy.
