/* Author: Jeff Sani Date: 1/23/06 Description and Known Bugs: Creates a sphere, cube, or cone from user's choice. A number can be entered to define a size for the shape if so desired before using the Create button. Selecting any object you can move it with the sliders X, Y, and Z (or alternatively, type in the number beside the slider bars) and view the results in real time. Currently no known bugs. */ if (`window -exists creatorWin`) deleteUI creatorWin; window -retain -title "The Creator II: Revenge of the Shapes" creatorWin; columnLayout; radioCollection radioButtons; text "Choose A Shape:"; radioButton -onCommand "button -e -c \"sphere -n sphere1 -r `floatField -q -value sizeField`\" buttonCreate" "Sphere"; radioButton -onCommand "button -e -c \"polyCube -n cube1 -w `floatField -q -value sizeField` -h `floatField -q -value sizeField` -d `floatField -q -value sizeField`\" buttonCreate" "Cube"; radioButton -onCommand "button -e -c \"cone -n cone1 -r `floatField -q -value sizeField` \" buttonCreate" "Cone"; text "Define The Size:"; floatField -value 1 -minValue 1 sizeField; button -label "Create" -command "warning \"Please choose a shape to create.\"" buttonCreate; separator -bgc 0 0 0 -width 400 "separator1"; text "Move Your Shape:"; floatSliderGrp -bgc .8 .3 .3 -label "X Coordinates" -min -10 -max 10 -field true -dc "move `floatSliderGrp -q -value floatSliderX` `floatSliderGrp -q -value floatSliderY` `floatSliderGrp -q -value floatSliderZ`" floatSliderX; floatSliderGrp -bgc .3 .8 .3 -label "Y Coordinates" -min -10 -max 10 -field true -dc "move `floatSliderGrp -q -value floatSliderX` `floatSliderGrp -q -value floatSliderY` `floatSliderGrp -q -value floatSliderZ`" floatSliderY; floatSliderGrp -bgc .3 .3 .8 -label "Z Coordinates" -min -10 -max 10 -field true -dc "move `floatSliderGrp -q -value floatSliderX` `floatSliderGrp -q -value floatSliderY` `floatSliderGrp -q -value floatSliderZ`" floatSliderZ; showWindow creatorWin;