2009

Table Of Contents
The polygonal cube is moved to the XYZ co-ordinates 3,2,1.
The move command has set the translate attributes to the specified
arguments of the command. These arguments are called command
arguments as they are not used with flags.
When a command is typed into the Script Editor, it acts on the current
selection, unless an object name is provided as an argument to the
command.
2 With the polygonal cube selected, type the following in the Script Editor:
move -1 -2 -3 -relative;
The polygonal cube moved relative to its current position by -1,-2,-3 in
XYZ.
The move command is used with the relative flag to change the method
in which the command executes. The relative flag does not have any
arguments; the values -1,-2,-3 are command arguments used with the
move command. The values are prefaced by a negative sign, but are not
recognized as flags as they do not contain any of the flag keywords.
This is equivalent to using the Move tool in the Maya interface.
To specify attributes of geometry with flags
1 Create a polygonal sphere with a radius of two and four subdivisions in
X by typing the following in the Script Editor:
polySphere -radius 2 -subdivisionsX 4;
602 | Chapter 13 Scripting in Maya