2009

Table Of Contents
Setting up the scene
To import and position the barrel
1 Open the scene named mel_lesson3_Barrel.ma
This file can be found in the GettingStarted\MEL directory that you set
as your Maya project, in the scenes sub-directory.
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
Setting up the scene | 615