PDA

View Full Version : Slider function in mel


asah
12-24-2012, 02:53 PM
Hello

How create slider to change scale x and y and z for specific object


Please help me asap

gmask
12-24-2012, 03:00 PM
window;
columnLayout -adjustableColumn true;
floatSlider;
floatSlider -min -100 -max 100 -value 0 -step 1;
showWindow;

asah
12-24-2012, 03:12 PM
Thanks :)

Yes, I know this mel code but I do not know
how when change the slider, the scale of object changes according to value of slider

Plzzzz can help me

gmask
12-24-2012, 03:52 PM
floatSlider -min -100 -max 100 -value 0 -step 1 -cc "myScaleFunction" mySlider;

global proc myScaleFunction(){

float $scale=`floatSlider -q -v mySlider`;

setAttr myobject.sx $scale;

}

asah
12-24-2012, 05:14 PM
Thanks alot ^___^

:) :) :)

CGTalk Moderation
12-24-2012, 05:14 PM
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.