Cl_pyramid_UI.mel

[index]

3th April 2009   5:8pm 50sec
/home/cleong20/Desktop/vsfx705/mel/Cl_pyramid_UI.mel


Pyramid_UI_01



//DECLARE Global NAMES//
  
global string $Xslider ;
global string $Yslider ;
global string $Zslider ;
  
//END of Global Declaration//
  
//-___________---------------------________________--------------------------
  
  
//----------------------------------------------------------//
//INTERFACE//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$//
global proc LeongPyramid_UI()
{
global string $wn;
global string $Xslider ;
global string $Yslider ;
global string $Zslider ;
  
//avoid duplicate window
if(`window -exists $wn`)
    deleteUI $wn;
  
//UI window
$wn =`window -title "leong Pyramid generator"  -h 400 -w 400` ;
  
columnLayout;
//for defining size of pyramid//
//units//
  
  
  
//X-axis//
$Xslider = 
`floatSliderGrp     -min 0 -max 10
                    -value 5
                    -field true
                    -label "Units in X-axis"`;
                
//Y-axis//
$Yslider = 
`floatSliderGrp     -min 0 -max 10
                    -value 5
                    -field true
                    -label "Units in Y-axis"`;
//Z-axis//
$Zslider = 
`floatSliderGrp     -min 0 -max 10
                    -value 5
                    -field true
                    -label "Units in X-axis"`;
//create Pyramid//
button -label "Make Pyramid" -command "makePyr1";
button -label "delete Current" -command "deletestuff()";
button -label "DUPLICATE" -command "Dup_Pyr()";
//editpyramid_location//
  
  
showWindow;
}
  
LeongPyramid_UI();