Run MEL commands

Run a single MEL command

Type a command in the command line at the bottom of the Maya main window.

If the command line is not visible, you can turn it on by choosing Windows > UI Elements > Command Line.

To... Do this

Execute a command and return the keyboard focus to the view window so you can use hotkeys.

  • Turn off Hold Focus in the Interface preferences.
  • Type the command and do one of the following:
    • Press the Enter or Return key.
    • Press the Enter key on the numeric keypad.

Execute a command and leave the keyboard focus in the command line.

  • Turn on Hold Focus in the Interface preferences.
  • Type the command and do one of the following:
    • Press the Enter or Return key.
    • Press the Enter key on the numeric keypad.

Scroll through the history of commands.

Press Up and Down Arrows in the command line.