PDA

View Full Version : retrieving value from a floatSlider in MEL


idokalir
01-09-2003, 05:57 PM
Does anyone know how to retrieve the value of a floatSlider in the same floatSlider's dragCommand? I'm trying to access the value through the variable #1 (I saw this done on some website) and it's not working:

floatSlider -min -10 -max 30 -value 0 -dc "setAttr pinkyController #1";

...also tried accessing it through it's name but it always returns zero:

floatSlider -min -10 -max 30 -value 0 -dc "float $temp = `floatSlider -q -v \"pinky\"`; setAttr pinkyController $temp" "pinky";

???
thanks for any advice...

bigfatMELon
01-09-2003, 06:15 PM
I don't think is the proper approach for this kind of thing. Look up: connectControl instead.

-jl

CGTalk Moderation
01-14-2006, 03:00 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.