スライダーには以下の種類がある。
ここではfloatSliderGrpとattrFieldSliderGrpについて使用例を示す。
window -title "slider1";
columnLayout;
text -label "make Sphere";
floatSliderGrp -label "Radius" -field true
-min 0.1 -max 20.0 -step 0.1 -value 1.0 radiusSlider;
button -label "OK"
-command "$sphereRadius = `floatSliderGrp -q -value radiusSlider`;\
sphere -r $sphereRadius";
showWindow;
$names = `ls -sl`;
$windowName = `window -title "slider2"`;
columnLayout;
text -label "Change Sphere scale";
attrFieldSliderGrp -label "scale X"
-min 0.1 -max 20.0 -at ($names[0] + ".sx");
button -label "Close" -command "deleteUI $windowName";
showWindow;