2010

Table Of Contents
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.
The contents of the MEL file are displayed in the Script Editor.
4 Load the same MEL script into the MEL2 tab by repeating the above
procedure.
5 In the MEL tab, highlight the script by selecting Edit > Select All from
the Script Editor menu bar.
6 Execute the script by pressing Ctrl+Enter.
A user interface is created for the makeRoll procedure. There is a control
in the user interface for each argument of the makeRoll procedure.
(You can leave this window open as well be doing some testing with it,
though it doesnt do anything yet.)
Discussion: what the script does
The controls in the user interface are created by various commands.
Below,
the script has been broken up into sections to describe the various user interface
controls and their flags. The user interface controls and commands that you
used earlier in the lesson are described only briefly below.
692 | Chapter 13 Scripting in Maya