2010

Table Of Contents
This file can be found in the GettingStarted\MEL directory that you set
as your Maya project.
2 Open the Script Editor by selecting Window > General Editors > Script
Editor.
3 Select the barrel with the select tool.
4 In the Script Editor, type the following:
Type exactly as below:
rotate -r 0 0 90;
The barrel is rotated 90 degrees about the Z axis.
Storing scene information
You will store the value of the measurement annotation as a variable. A variable
is a name used for convenience to refer to a certain location in memory. This
location in memory can store data.
Variables have four main characteristics; name, type, value and scope. Name,
type and scope are defined at creation time. Defining the name and type of
a variable is referred to as declaring a variable. In MEL the name of the variable
is always prefixed by the $ symbol, indicating to the scripting language that
the following characters name a variable.
The scope of the variable determines where the variable can be accessed from.
If a variable is declared within a block of code, it cannot be accessed from
outside the block of code.
Storing scene information | 675