The MAXScript Listener is a combination of text editor and command prompt window. MAXScript executes the commands you write when you press ENTER, but you can also scroll through the text to re-execute existing commands, or edit them and then have MAXScript execute the modified code.
Listener has the following features:
A line selection margin at the left window border. When you move the cursor into the left margin, it changes to a right-pointing arrow. A single-click selects an entire line, and click-dragging selects multiple lines.
Drag-and-drop for copying text within Listener and to and from script Editor windows.
Selected text is loaded automatically into the search text dialog field when you choose Search > Find or Search > Replace. This is useful for quickly finding other occurrences of the selected text.
Color-coding for distinguishing between input text, output text, and error message text. Several MAXScript system global variables control these colors as well as background colors, and you can assign them new colors to customize your Listener.
Text Type | Variable | Default Color |
---|---|---|
typed input text | inputTextColor |
black |
output text | outputTextColor |
blue |
error message text | messageTextColor |
red |
listener background color | listenerBackgroundColor |
white |
macro recorder background color | macroRecorderBackgroundColor |
color 219 195 195 |
macro recorder text color | macroRecorderTextColor |
black |
python mode prompt color | pythonPromptColor |
color 255 100 0 |
For commands within the Listener window, see Listener Commands.