As you might have guessed by the title, Mel means Maya Embedded Launguage. Mel is a scripting launguage. This means that you can type a Mel command and execute that command as soon as you hit enter. This differs from a compiled language, a compiled language would require you convert your code into commands the computer understands, and example of this would be a language such as C. Since Mel is a scripting language, it makes Mel extremely fast to use. Unfortunately, this does not eliminate your having to debug your code. Like any programming language debugging will probably be where you spend the bulk of your time.
commandline
This is located in the lower right corner of your screen
Script editor
Windows / General Editors / Script Editor
Command Shell
Windows / General Editors / Command Shell
Shelves
This is located near the top of your screen
Script Files
located in your Maya scripts folder. Have a .Mel extention following the name. Expression Editor
Windows / Animation Editors / Expression Editor
![]()
Let's create an object in maya, a sphere, and looking at what happens in the script editor.
Create a spherewhat you should see in the script editor is:
Create / Nurbs Primitives / Sphere
Open up the script editor
Windows / General Editors / Script Editor
sphere -p 0 0 0 -ax 0 1 0 -ssw 0 -esw 360 -r 1 -d 3 -ut 0 -tol 0.01 -s 8 -nsp 4 -ch 1;We see two commands. The first command creates a nurbsSphere with some options attached and the second command sets our current tool to the move tool. Let's take the fundamental aspect of this code and type it into the command line
objectMoveCommand;
In the command line type sphere;You should see a nurbs Sphere appear on your screen. Open your script editor again.
hit enter
sphere;This should illustrate that Maya's interface is using the same commands you will be using to create you scripts with. To familiarize yourself with how maya is running it's commands keep the sript editor open while you work as notice what is happening every time you perform an action.
// Result: nurbsSphere1 makeNurbSphere1 //
<Top>