// //Travs ez color chooser tool // global proc colorPickerWindow() { //create a window if (`window -exists colorChooseWindow`) deleteUI colorChooseWindow; // sets the title of the window window -title "Trav's EZ Color Chooser" -widthHeight 640 360 colorChooseWindow; //cancels user preferences on last size they had the window open if (`windowPref -exists colorChooseWindow`) windowPref -remove colorChooseWindow; string $colorChooseWindow; /*==================================*/ columnLayout; text -label "Select a curve, then choose a color:" -align "center"; rowColumnLayout -numberOfRows 3 -rowHeight 1 100 -rowHeight 2 100 -rowHeight 3 100; button -label " Default " -bgc 0.2 0.2 0.5 -command grey; button -label "Blue" -bgc 0.0 0.3 1.0 -command Blue; button -label "Sand" -bgc 0.8 0.7 0.3 -command Sand; button -label " Black " -bgc 0.0 0.0 0.0 -command black; button -label "White" -bgc 1.0 1.0 1.0 -command White; button -label "Olive" -bgc 0.3 0.6 0.2 -command Olive; button -label "drkGrey" -bgc 0.2 0.2 0.2 -command drkGrey; button -label "Yellow" -bgc 1.0 0.9 0.0 -command Yellow; button -label "blueGreen" -bgc 0.3 0.6 0.4 -command blueGreen; button -label " liteGrey " -bgc 0.6 0.6 0.6 -command liteGrey; button -label "liteBlue" -bgc 0.0 0.9 1.0 -command liteBlue; button -label "Aqua" -bgc 0.2 0.7 0.7 -command Aqua; button -label "drkRed" -bgc 0.5 0.2 0.2 -command drkRed; button -label "whiteGreen" -bgc 0.0 1.0 0.5 -command whiteGreen; button -label "dullBlue" -bgc 0.3 0.4 0.6 -command dullBlue; button -label " drkBlue " -bgc 0.2 0.1 0.4 -command drkBlue; button -label "Pink" -bgc 1.0 0.0 0.7 -command Pink; button -label "litePurple" -bgc 0.4 0.3 0.49 -command litePurple; button -label " liteBlue " -bgc 0.1 0.1 0.7 -command liteBlue; button -label "Tan" -bgc 0.8 0.6 0.4 -command Tan; button -label "drkPink" -bgc 0.8 0.36 0.6 -command drkPink; button -label "drkBrown" -bgc 0.3 0.2 0.0 -command drkBrown; button -label "liteYellow" -bgc 0.9 0.9 0.4 -command liteYellow; button -label "redBrown" -bgc 0.7 0.2 0.0 -command redBrown; button -label " Green " -bgc 0.2 0.8 0.4 -command Green; button -label "Red" -bgc 1.0 0.0 0.0 -command Red; button -label "Brown" -bgc 0.8 0.5 0.3 -command Brown; button -label " Green " -bgc 0.2 1.0 0.0 -command Green; setParent..; rowColumnLayout -numberOfRows 1; button -label " Template " -bgc 0.2 1.0 0.0 -command Template; button -label " Reference " -bgc 0.2 1.0 0.0 -command Reference; button -label " unTemplate/unReference " -bgc 0.2 1.0 0.0 -command unTemp; setParent..; setParent ..; showWindow colorChooseWindow; } colorPickerWindow(); /*===========================================*/ proc grey () { string $select[] = `ls -sl`; for($i=0;$i