2009

Table Of Contents
A polygonal cube is created at the origin.
The command is removed from the input section of the Script Editor
after execution. The command and the result of the command is output
to the history section of the Script Editor:
polyCube;
// Result: pCube1 polyCube1 //
NOTE In future lessons, when a series of MEL or Python commands creates
output, only the output created by the commands will be referred to as
output to the Script Editor.
Comments in MEL begin with // and anything which follows these characters
on a line is ignored by MEL. The same convention is used for displaying results
of commands and output in the Script Editor history section. Similarly, results,
comments and messages output by Python are prefaced with the Python
commenting character ( # ).
NOTE In the rest of this lesson and the remaining MEL lessons, when asked to
type a command, execute the command after typing it with the Enter on the
numeric keypad on your keyboard. You can also execute commands with Ctrl+Enter
(Windows) or Ctrl+Return (Mac OS X).
TIP If you do not want the command to be removed from the input section of
the Script Editor after execution, highlight the command before execution by
selecting it with the mouse.
Modifying object attributes
When you perform an action on an object in the Maya user interface, you are
using Maya commands to change the attributes of selected objects. You can
use the same Maya commands explicitly to edit the attributes of objects in
the scene.
To use the move command
1 With the polygonal cube selected, type the following in the Script Editor:
move 3 2 1;
Modifying object attributes | 601