8
824 Chapter 21: User Interface
Open Script (page 3–824)
Run Script (page 3–824)
MAXScript Listener (page 3–824)
Macro Recorder (page 3–825)
Visual MAX Scr ipt Editor (page 3–826)
MAXScript Debugger Dialog (page 3–826)
There is also a
MAXScript Mini Listener (page
3–746)
on the
status bar (page 3–746)
.
For detailed information about the MAXScript
utility, open the MAXScript Reference, available
from Help menu > MAXScript Reference.
New Scri pt
MAXScript menu > New Script
NewScriptopensanewMAXScriptEditor
window. Use this window for w riting a new script.
For detailed information about the MAXScript
utility, open the
MAXScript Reference
,available
from Help menu > MAXScript Reference.
Open S cr ipt
MAXScript menu > Open Script
Open Script opens a common file open dialog for
choosing an existing script. A new MAXScript
Editor w indow then displays the selected script.
For detailed information about the MAXScript
utility, open the
MAXScript Reference
,available
from Help menu > MAXScript Reference.
Run Script
MAXScript menu > Run Script
RunScriptopensacommonfileopendialogfor
choosing an existing script. MAXScript then reads
and executes the selected script. Any output is
printed to the Listener window.
For detailed information about the MAXScript
utility, open the
MAXScript Reference
,available
from Help menu > MAXScript Reference.
MAXScript Listener
MAXScript menu > MAX Script Listener
Mini Listener > Right-click menu > Open Listener Window
Keyboard > F11
The M A XScript Listener window is an interactive
interpreter for the MAXScript language and works
similar to a DOS command prompt window. You
enter MAXScript commands in this window,
and w hen you press ENTER they are executed
immediately.
TheListenerwindowisappropriateforperforming
interactive work and developing small code
fragments. Each command you execute in the
Listener is actually an expression w ith a result
which the Listener prints out after each execution.
You can enter any MAXScript expression or
sub-expression in the Listener for evaluation, and
the Listener pr ints out its result.
The Listener is divided into two panes. The top
(pink) pane is the Macro Recorder pane, and the
bottom(white)paneistheoutputpane.Whenthe
Macro Recorder is enabled, everything recorded is
displayed in the Macro Recorder pane. The output
of results from scripts are displayed in the output
pane. The output of code executed in the Macro
Recorder pane is always directed to the output