Page 1219 - Kitab3DsMax
P. 1219
Chapter 49: Automating with MAXScript
TABLE 49.1
Command
What It Does
Displays a list of all current threads.
threads
Makes the specified thread number the active thread.
setThread (thread no.)
Dumps the stack for the active thread.
stack MAXScript Debugger Commands
setFrame (frame no.) Makes the specified frame number the active frame.
locals (variable) Dumps the value for the specified variable for the active thread and frame. If no
variable is listed, then all variable values are dumped.
getVar (variable) Gets the value of the specified variable.
setVar (variable) Sets the value of the specified variable.
eval (expression) Evaluates the specified expression.
? Displays a list of debugger commands.
Configuring the debugger
The Config button opens the MAXScript Debugger Parameters dialog box, shown in Figure 49.11. This dia-
log box includes several options for deciding when to break out of the script execution. It also lets you
define the time for each break.
FIGURE 49.11
The MAXScript Debugger Parameters let you set the break cycle time, among other settings.
Setting MAXScript Preferences
The Preference Settings dialog box, opened with the Customize ➪ Preference Settings menu command,
includes a panel of MAXScript settings, shown in Figure 49.12. Using these settings, you can set which
scripts load automatically, the default settings for the Macro Recorder, and even what font is displayed in
the Script Editor window. The Use Fast Node Name Lookup option causes all indexed MAXScript names to
be saved in a cache buffer to speed the execution of the script.
1171