2010

Table Of Contents
2 Create a polygonal sphere with the radius and subdivisions in X and
name defined at creation time.
cmds.polySphere(radius=1, subdivisionsX=4, name="testSphere")
You can use multiple flags to modify the execution of a command by
separating the flag-value pairs with a comma. The radius flag sets the
radius of the created sphere. The subdivisionsX flag sets the number of
subdivisions in X for the sphere.
NOTE A list of flags available for a command can be output to the Script
editor by typing cmds.help("command"). For example: cmds.help("sphere")
To use flags with command arguments in Python
1 Move the polygonal sphere by typing the following in the Script Editor:
cmds.move(2,2,2)
2 Select the polygonal cube.
3 Move the polygonal cube by typing the following:
cmds.move(1,2,3)
708 | Chapter 13 Scripting in Maya