FORUMS: list search recent posts

Linking slider to variable

COW Forums : Autodesk Maya

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
Otto Lindqvist
Linking slider to variable
on Jan 23, 2013 at 8:08:51 am

There's another problem from me. For some reason I cant get this getting value from slider thing working...

What I'm doing wrong? It's giving me syntax error from the last 2 procedures.

//Create window
window -title "Create new grill" -rtf true GrillMakerWindow;

columnLayout;

intSliderGrp -label "Width" -field true
-value 0 -minValue 0 -fieldMinValue 0 -cc getWidthSlider
-dc getWidthSlider Width;

intSliderGrp -label "Height" -field true
-value 0 -minValue 0 -fieldMinValue 0 -cc getHeightSlider
-dc getHeightSlider Height;

intSliderGrp -label "Grillholes width" -field true
-value 0 -minValue 0 -fieldMinValue 0 GrillWidth;
intSliderGrp -label "Grillholes height" -field true
-value 0 -minValue 0 -fieldMinValue 0 GrillHeight;
intSliderGrp -label "Edge width" -field true
-value 0 -minValue 0 -fieldMinValue 0 EdgeWidth;


button -label "Create Grill" -command "GrillMaker";

showWindow GrillMakerWindow;

proc getWidthSlider()
{
int $width = 'intSliderGrp -v Width';
print $width;
}

proc getHeightSlider()
{
int $height = 'intSliderGrp -v Height';
print $height;
}


Thanks for helping me

If it's not moving, animate it


Return to posts index

Steve Sayer
Re: Linking slider to variable
on Mar 4, 2013 at 3:16:16 pm

Hi, Otto.

I think you're using the wrong quotes there.

You need the single forward quotes that you can find above the Tab key on your keyboard, next to the 1 key... not the single generic quotes next to the Enter key.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]