Tip: Everything you do in Maya is a MEL command. If you open up the script editor, and do something in the program, it will tell you the code for what you just did.