VEX
General
One of the most comprehensive VEX attribute reference: https://wiki.johnkunz.com/index.php?title=VEX_Attribute_Glossary#What_is_VEX.3F
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}