9

700 Chapter 21: User Interface
Pr ocedur es
Ex ampl e: To create a spher e usi ng the M ini Lis tener:
1.
Click the tag bar at the left end of the status
bar,anddragittotherighttoexpandtheMini
Listener.
2. In the Scripter (white, lower) line, type sphere
radius: 50 and press
Enter .
A sphere appears in the viewports.
Ex ampl e: To r edo a command using t he M ini L istener :
1.
Clickthetagbarattheleftsideofthestatus
bar,anddragittotherighttoexpandtheMini
Listener.
2. Right-click the Mini Listener and choose Open
Listener Window.
3. From the MacroRecorder menu, choose Enable.
4. Using the command p anel, create a sphere in
the perspective viewpor t.
5. Conver t the sphere to an Editable Mesh.
6. Delete the sphere.
7. Make a bo x.
8. Right-click the MacroRecorder (pink, upper)
line and choose macros.run "Modifier Stack"
"Convert_to_Mesh" from the list. The b ox has
been collapsed to an editable mesh.
Example: To make a scr ipt and add it to a toolbar:
For this very simple example, you ’ll make a script
thatcollapsesanobjecttoaneditablemesh,and
then create a toolbar icon to run the script.
1. Right-click the Mini Listener, and choose Open
Listener Window.
2. From the MacroRecorder menu, choose Enable.
Close the listener window.
3. Create a box in the Perspective viewport.
4. Right-click the box and choose Convert to: >
Editable Mesh from the quad menu.
5. Left-click in the MacroRecorder line.
The MacroRecorder line goes blank because
the cursor goes to the last line.
6. Press t he upper-arrow key on the keyboard to
move up the list of recorded command scripts.
7. Click a nd highlight the macros.run "Modifier
Stack" "Convert_to_Mesh" line.
Highlight the command script as you would
highlight a line of text in a text editor by clicking
at the start of the line and dragging along the
entire length.
8. Click and drag the highlighted script f rom the
Mini Listener to a to olbar.
Interfa ce
Ma croRecorder L ine—Thepink,upperlinedisplays
the last thing recorded by the MacroRecorder. If
the MacroRecorder is not enabled, nothing will
appear in this line.
Scripter Line—The white, lower line displays the
last entry typ ed into the Scripter window. You
cantypedirectlyintothislineandexecutethe
commands in the viewports
Histor y L ist—Right-clicking either of the Mini
Listener lines displays a histor y of t he last twenty
commands recorded by the Macro Recorder
(provided it has b een enabled). Click any of these
commands to execute them in the viewports.
Open Li stener W indow—Right-clicking either of
the Mini Listener lines displays a dialog that allows
you to open the MAXScript Listener window. You
can also open the Listener using the Utilities panel
> MAXScript rollout. You can display the Listener
window in a viewport by right-clicking the
viewport label, then choosing Views > Extended
> MAXScript Listener.