Thread: Basic MEL
View Single Post
# 1 22-10-2015 , 03:09 PM
Registered User
Join Date: Oct 2015
Posts: 4

Basic MEL

Hi

Having moved onto Maya LT and lost Python, I'm struggling with MEL.

This seems really basic but I cannot work it out. I am creating a window with 4 check boxes and I want the 'Reset' button to set them all to be 0. Simple I thought.

I continually get the 'Object's name is not unique' when attempting to set the checkBoxGrp object. I can happily query it though.

Any help would be much appreciated.
Thanks!

{
string $window = `window
-widthHeight 450 150`;
columnLayout -adjustableColumn true;
checkBoxGrp
-numberOfCheckBoxes 4
-labelArray4 "One" "Two" "Three" "Four"
drawModeCheck;
button -label "Reset" -command "funcclear" -bgc 0.8 0.0 0.0;
button -label "Close" -command ("deleteUI -window " + $window);
separator -height 10 -style "in";
setParent ..;
showWindow $window;
}

global proc funcclear()
{
string $adVal = `checkBoxGrp -query -v1 drawModeCheck`;
print $adVal;

checkBoxGrp -va4 0 0 0 0 -ed 1 drawModeCheck;
}