VEX

General

MEL UI with slider widget
 1window -rtf true -title "makeBall";
 2  columnLayout;
 3      floatSliderGrp -label "radius" -field true radiusSlider;
 4      floatSliderGrp -label "height" -field true heightSlider;
 5      button -label "Make Something" -command  "makeStickBall";
 6showWindow;
 7
 8proc makeStickBall () {
 9  float $rad =`floatSliderGrp -q -value "radiusSlider"`;
10  float $hei =`floatSliderGrp -q -value "heightSlider"`;
11  polyCylinder -r $rad -h $hei;
12  move 0 ($hei/2) 0;
13  polySphere -r ($rad*2);
14}