Script Editor

To open the Script Editor

The Script Editor lets you type in single or multi-line scripts in a MEL or Python tab and see the output in the history pane.

The history (top) pane shows the history of commands and their results.

In the input (bottom) pane, type commands and scripts in the MEL or Python tab.

A MEL or Python icon appears on each tab to denote its language, so you can differentiate between MEL and Python tabs without the need to select them.

Tip:

If you create your own custom tabs, you can add your own icon to the tab instead of using the standard MEL or Python icons. For more information, see the tabLayout command and the tabIcon and tabIconIndex flags.

If you save your script to the shelf, you can do the same for the tab created on the shelf. For more information, see the shelfTabLayout command and the tabIcon and tabIconIndex flags, and Make a shelf button for a script.

To run a script

To execute the script in the input pane, do one of the following:

To create, close, or rename tabs

Do one of the following:

Command highlighting

All commands are highlighted as you enter them in the Script Editor.

Related topics