# Slider

**URL:** https://forum.highend3d.com/t/slider/3111
**Category:** Maya
**Tags:** mel
**Created:** [May 5, 2006, 8:49am UTC](https://forum.highend3d.com/t/slider/3111 "2006-05-05T08:49:49Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![arunspooja](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/a/a9adbd/32.png) [@arunspooja](https://forum.highend3d.com/u/arunspooja)
#### Post date: [May 5, 2006, 8:49am UTC](https://forum.highend3d.com/t/slider/3111/1 "2006-05-05T08:49:49Z")

</div>

Hai good afternoon to all

I am just a starter in mel and i have problems in creating a slider

I want only slider with the name and not the field. so i chose "floatslider". But its executing with out any error but when i vary the slider, none of the action happens, as i specify, i dont know what goes wrong.

the command i written is

window;  
columnLayout;  
floatSlider -hr 0 pSphere1.translateX;  
showWindow;

Can any one help me out. but i didnt want the field option to be displayed.

---

<div class="post-metadata">

### Author: ![kurianos3d](https://forum.highend3d.com/user_avatar/forum.highend3d.com/kurianos3d/32/55947_2.png) [@kurianos3d](https://forum.highend3d.com/u/kurianos3d)
#### Post date: [May 5, 2006, 9:26am UTC](https://forum.highend3d.com/t/slider/3111/2 "2006-05-05T09:26:07Z")

</div>

CODE  
window;  
columnLayout;  
floatSlider -hr 0 -cc changeattr;  
showWindow;  
global proc changeattr()  
{  
float $getPs=`getAttr pSphere1.translateX`;  
float $myget=$getPs+1;  
setAttr "pSphere1.tx" $myget;  
}

but now you using floatSlider insted of floatSlider u can use attrFieldSliderGrp

CODE  
window;  
columnLayout;  
attrFieldSliderGrp -min -10.0 -max 10.0 -at pSphere1.tx;  
showWindow;
