gurdjieff
12-16-2004, 06:52 PM
Hello,
I am trying to get the correct syntax for
creating a connection between an intSliderGrp
value and an objects attribute (in this case scale)
so far I have...
global proc scaleWin()
{
window -title "scaleSlider";
columnLayout
-adjustableColumn true;
intSliderGrp -label "scale" -field true
-minValue 0 -maxValue 20
-fieldMinValue 0 -fieldMaxValue 20
-value 1;
showWindow;
string $scaleField = `intSliderGrp`;
string $sphereScaled[] = `sphere`;
setAttr ($sphereScaled[0] + ".scale") $scaleField;
}
thanks in advance!
I am trying to get the correct syntax for
creating a connection between an intSliderGrp
value and an objects attribute (in this case scale)
so far I have...
global proc scaleWin()
{
window -title "scaleSlider";
columnLayout
-adjustableColumn true;
intSliderGrp -label "scale" -field true
-minValue 0 -maxValue 20
-fieldMinValue 0 -fieldMaxValue 20
-value 1;
showWindow;
string $scaleField = `intSliderGrp`;
string $sphereScaled[] = `sphere`;
setAttr ($sphereScaled[0] + ".scale") $scaleField;
}
thanks in advance!
