// Creation Date: Sept-15-2002 // // Author: // // ------------------------- // --------------------------- // Klaus Stangl // Student@TU Graz // Demoartist/Developer // Educator@Siliconstudio Graz // www.worldofmaya.com // office@worldofmaya.com // ----------------------------- // ------------------------------- // // // Script Name: // backgroundControl() // // global proc backgroundControl () { global string $winName_lat = "Background_Control_Window"; string $main = "back_controlWindow"; //deleteUI -window "Background_Control_Window"; window -t "Viewport Control" -wh 466 275 $winName_lat; scrollLayout -hst 0 -vst 16 -childResizable true -w 455; columnLayout -adjustableColumn true; text -label "Color Control Functions:"; rowColumnLayout -nc 1 -cw 1 200 ($main); rowColumnLayout -cw 1 100 -cw 2 100 -nc 2; button -w 50 -label ("Black")-c ("displayRGBColor \"background\" 0 0 0;"); button -w 50 -label ("White") -c ("displayRGBColor \"background\" 1 1 1;"); button -w 50 -label ("Default") -c ("displayRGBColor \"background\" 0.65248 0.65248 0.65248;"); button -w 50 -label ("Restore Saved") -c ("displayRGBColor -rs \"background\";"); setParent $main; button -l "close this Window..." -c "deleteUI -window $winName_lat"; showWindow $winName_lat; }