2009

Table Of Contents
This is equivalent to renaming an object with the Attribute Editor or the
Channel Box in the Maya interface.
Editing Objects
Some MEL commands can take an edit flag that allows you to make changes
to the attributes of an object. The edit flag is used in conjunction with other
flags specifying which attributes to change.
To edit objects with Maya commands
1 Select the polygonal cube
2 Edit the height of the cube by typing the following in the Script Editor:
polyCube -edit -height 3;
This is equivalent to changing attribute values within the Attribute Editor
in the Maya interface.
3 Edit the radius of the sphere named test_Sphere by typing the following
in the Script Editor:
polySphere -edit -radius 1 test_Sphere;
604 | Chapter 13 Scripting in Maya