Am a 3d artist, I want to make a simple script in mel ,having issue with "is an undeclared variable"
and also want to know, how I should make Maya to forget declared variable?
proc Zlowp()
{
$Zlow =ls -sl
;
print "Meshs selected";
if (size($Zlow) == 0)
{
print "Nothing is seleted";
}
}
proc DoCham()
{
select $Zlow;
ChamferVertex;
}
if (window -exists myWindow
) deleteUI myWindow;
window -title "LOD Boss" -w 160 myWindow;
columnLayout -adjustableColumn true;
text -label "Tranfer UV" -fn "boldLabelFont" ;
button -label "Z-Div" -command "Zlowp";
button -label "Z" -command "select $Zlow" ;
showWindow;