Hi, I'm new to this MEL scripting thing and I'm trying to make something simple where I can select multiple objects and scale them all together with a slider. I'm lost on the part where I tell it to scale all of them from the string. I would gladly appreciate the help or little hints on how to do that. This is what I have so far.
if (window -exists myWindow
) { deleteUI -window myWindow; }
window -rtf true -title "Scale" myWindow;
columnLayout;
floatSliderGrp -dragCommand "findValues" -minValue 0 -maxValue 50 -label "Joint Size" -field true getValue;
showWindow myWindow;
proc findValues()
{
float $myNumPosDef = floatSliderGrp -q -value "getValue"
;
string $cont[] = ls -sl
;
setAttr $cont[].scaleX $myNumPosDef;
}