2009

Table Of Contents
When Show Line Numbers is on, line numbers appear beside the
commands in the Script Editor. The lesson occasionally refers to line
numbers to tell you where to make a modification to the script. When
line numbers are referred to in the lesson, they are always the line
numbers of the original script.
2 Create a new tab in the Script Editor by selecting Command > New Tab.
A pop-up window asks you in which language should the commands
entered in this tab execute in.
3 Click the MEL button on the pop-up window.
You created a second MEL tab in the Script Editor.
4 Select Command > Rename Tab.
5 Enter MEL2.
The tab is renamed.
In the next steps, you load a user interface script into both MEL tabs. The MEL
tab will contain the original script, and the MEL2 tab will contain the user
interface script with your modifications. This way, line numbers can be
referenced from the original script to inform you where to make a modification.
To open a script file in the Script Editor
1 Select the MEL tab.
2 In the Script Editor, select File > Load Script.
3 Select the MEL script named Mel_UI_Start.mel.
This file can be found in the GettingStarted directory that you set as
your Maya project, within the mel sub-directory.
632 | Chapter 13 Scripting in Maya