otuama
08-18-2008, 08:40 AM
Hi all. Was wondering if someone could help me out?
I'm on video 9 of Into to MEL (making a UI) and there is one line that's causing me problems. I have no idea why because as far as I can see it's simular to the code in the video.
The problem line seems to be "int $myNumCubes = `intSliderGrp -q -value "numCubes";"
I've restarted Maya, typed the line in again but nothing seems to work. Can anyone figure out what's wrong?
Many thanks,
Sean
_______________________________________________
if (`window -exists myWindow`) { deleteUI -window myWindow; }
window -rtf true -title "Create some Cubes" myWindow;
columnLayout;
intSliderGrp -label "Number of Cubes" -field true numCubes;
floatSliderGrp -label "Thickness" -field true cubeThickness;
button -c "cube" -label "Create";
showWindow myWindow;
proc findValues () {
//------------PROBLEM LINE BELOW!!!!-----------------------
int $myNumCubes = `intSliderGrp -q -value "numCubes";
print $myNumCubes;
}
I'm on video 9 of Into to MEL (making a UI) and there is one line that's causing me problems. I have no idea why because as far as I can see it's simular to the code in the video.
The problem line seems to be "int $myNumCubes = `intSliderGrp -q -value "numCubes";"
I've restarted Maya, typed the line in again but nothing seems to work. Can anyone figure out what's wrong?
Many thanks,
Sean
_______________________________________________
if (`window -exists myWindow`) { deleteUI -window myWindow; }
window -rtf true -title "Create some Cubes" myWindow;
columnLayout;
intSliderGrp -label "Number of Cubes" -field true numCubes;
floatSliderGrp -label "Thickness" -field true cubeThickness;
button -c "cube" -label "Create";
showWindow myWindow;
proc findValues () {
//------------PROBLEM LINE BELOW!!!!-----------------------
int $myNumCubes = `intSliderGrp -q -value "numCubes";
print $myNumCubes;
}