Simply Maya User Community

Simply Maya User Community (https://simplymaya.com/forum/index.php)
-   Programming (https://simplymaya.com/forum/forumdisplay.php?f=32)
-   -   float slider (https://simplymaya.com/forum/showthread.php?t=30628)

pbman 07-08-2008 10:07 PM

float slider
 
how do i assign a floatSlider to do a translatey

i have looked in hel docs but they only tell you how to make a slider that does not control anything

i want it to translate object browR
floatSlider -value 0 -step 0.1 -min 0 -max 1 -hr false;
this is all i have so far

cheers

pbman 08-08-2008 07:07 PM

ok figured it out

floatSlider -value 0 -min 0 -max 1 -step 0.1 -hr false -dc "select -r browR ; \ float $heightValue = `floatSlider -q -value heightSlider`;\ move 0 $heightValue 0 ;" heightSlider;

but when used it doesnt follow the min and max values and it give it a random xz coords


All times are GMT. The time now is 04:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018