How to enable or disable button or change button background color by another button in maya mel. This my code so far.
global string $btn2;
global proc fun(string $btn){
button -label "button 2" -enable false $btn;
}
window -width 150;
columnLayout -adjustableColumn true;
$btn1 = `button -label "button 1" -c "fun $btn2"`;
$btn2 = `button -label "button 2" -enable true`;
showWindow;