2010

Table Of Contents
Conditional statement
if(`window -exists makeRoll_Window`==1) { deleteUI makeRoll_Win
dow; }
The conditional statement checks if a window with the specified name exists.
If the window exists, it deletes it.
Window command
window -resizeToFitChildren 1 makeRoll_Window;
The window command creates a user interface window to contain the controls.
For more information, see Creating a window on page 684.
Column layout
columnLayout;
The columnLayout command creates a layout that arranges the controls within
it in a column. For more information, see
Referencing controls on page 684.
Text field commands
$obj_name_text = `textField -editable 0 -width 400 -text
name_Of_Object`;
The command textField creates an editable text field. The text field command
has multiple flags. The name and path of the text field are stored as a variable.
See
Storing control names on page 688.
The editable flag enables or disables editing of the text field.
The width flag sets the width of the control.
The text flag sets the contents of the text field.
Slider commands
$ground_int= `intSliderGrp -minValue -20 -maxValue 20 -value 0
-fieldMinValue -20 -fieldMaxValue 20 -field 1 -label "Ground
Plane"`; $diameter_float= `floatSliderGrp -value 1.0 -minValue
1.0 -fieldMinValue 1.0 -field 1 -label "Diameter"`;
The commands intSliderGrp and floatSliderGrp create sliders. Commands
ending in Grp create a group of linked controls. The slider commands create
controls for a label, a value box and a slider. The slider command has multiple
Loading a script file | 693