Hi i m very beginner in Mel scripting and i have some problemes finding infos...scuze my english by the way.
I managed to script a window displaying a slider and an apply button.
in an other hand i have that script witch does things with booleans operations
My question is how to connect the floatSliderButtonGrp of my window with the float variable of my script
and how shall i do to make the apply button to trun my script?
the script use three polys to build two mortise and tenon (male female slot thing)...
like so, step 1:

step 2:

here is the code for my window:
Code :
{ string $window = window "tenons et morteses"
; columnLayout; floatSliderButtonGrp -label "jeu mortese" -min 1.065 -max 1.2 -value 1.07 -step 0.01-field true/*this is the slider i want to connect with the $espace variable*/ -buttonLabel "apply" -symbolButtonDisplay true /* this is the button who should run my script*/ -columnWidth 5 23; showWindow $window;}
here is the mortise and tenon script :
Code :
{ string $maSelection[]=ls-selection
; string $tenon[]=duplicate $maSelection[2]
; float $espace = 1.07;// this is the variable i want to link to the slider of my window. polyCBoolOp -op 1 -ch 1 -preserveColor 0 -classification 1 -name male $maSelection[0] $maSelection[2]; select -clear; select $tenon; scale -r $espace $espace $espace; select -clear; polyCBoolOp -op 2 -ch 1 -preserveColor 0 -classification 1 -name female $maSelection[1] $tenon; //$maSelection[2]; };
thank you for your help...