Talk About Network

Google





Graphics > Alias software > How can I make ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 858 of 912
Post > Topic >>

How can I make a mel script slider dynamic/automaticlly update object changes tia sal2

by "temp@[EMAIL PROTECTED] " <not@[EMAIL PROTECTED] > Feb 22, 2007 at 08:05 AM

How can I make a mel script slider dynamic/automaticlly update object 
changes tia sal2

Greetings all I have a working mel script below but it will only update 
the changes if I press the button how can I make it so if I move the 
slider the object changes in realtime without having to press a button

TIA
sal2

if (`window -exists myWindow`) { deleteUI -window myWindow; }
window -rtf true -title "Deform torus" myWindow;

columnLayout;


floatSliderGrp -minValue 3.14 -maxValue 3.90 -label "Positive Value" -
field true posDef;
floatSliderGrp -minValue 3.14 -maxValue 6.28 -label "Negative Value" -
field true NegDef;

button -c "findValues" -label "Make'm";

showWindow myWindow;


proc findValues () {

float $myNumPosDef = `floatSliderGrp -q -value "posDef"`;
float $myNumNegDef = `floatSliderGrp -q -value "NegDef"`;

print $myNumPosDef;
print $myNumNegDef;
setAttr "pos_Cyl_bend1.curvature" $myNumPosDef;
setAttr "neg_Cyl_bend2.curvature" $myNumNegDef;



}
 




 2 Posts in Topic:
How can I make a mel script slider dynamic/automaticlly update o
"temp@[EMAIL PROTECT  2007-02-22 08:05:41 
Re: How can I make a mel script slider dynamic/automaticlly upda
"temp@[EMAIL PROTECT  2007-02-22 19:17:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Wed Jan 7 19:08:31 PST 2009.