2010

Table Of Contents
flags. The name and path of the slider are stored as a variable. See Storing
control names
on page 688.
The editable flag can be used to enable or disable editing of the text field.
The minValue and maxValue flags set the minimum and maximum values
for the slider.
The field flag enables the visibility of an editable value field beside the
slider. By default, the field is not visible.
The fieldMaxValue and fieldMinValue flags set the minimum and
maximum values for the field beside the slider.
The label flag sets the text that appears to the left of the slider.
Separator commands
separator -height 20 -width 120;
The command separator creates a horizontal line. It is used to space the
controls vertically in the window. The separator command has multiple flags.
The width flag sets the visible width of the separator.
The height flag sets the amount of vertical spacing created by the separator.
Check box commands
$box_sim_checkbox = `checkBox -value 1 -label "Box Simulation"`;
$sphere_sim_checkbox = `checkBox -value 0 -label "Sphere Simu
lation"`; separator -height 20 -width 120; $execution_button=
`button -label "Execute!" -command "print (\"something\");"`;
The command checkBox creates a check box. The check box command has
multiple flags. The name and path of the check box are stored as a variable.
See
Storing control names on page 688.
The value flag sets the initial value of the check box.
ShowWindow command
showWindow;
This command enables the last created windows visibility. For more
information, see Creating a window on page 684.
694 | Chapter 13 Scripting in Maya