2009

Table Of Contents
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
1 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.
Conditional statement
if(`window -exists makeRoll_Window`==1) { deleteUI makeRoll_Win
dow; }
The conditional statement checks if a window with the specified name exists.
If the window exists, it deletes it.
Window command
window -resizeToFitChildren 1 makeRoll_Window;
Loading a script file | 633