2008
Example: To make a script and add it to a toolbar:
For this very simple example, you’ll make a script that collapses an object to
an editable mesh, 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 the upper-arrow key on the keyboard to move up the list of recorded
command scripts.
7 Click and 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 from the Mini Listener to a toolbar.
Interface
MacroRecorder Line The pink, upper line displays 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 typed into the
Scripter window. You can type directly into this line and execute the
commands in the viewports
History List Right-clicking either of the Mini Listener lines displays a history
of the last twenty commands recorded by the Macro Recorder (provided it has
been enabled). Click any of these commands to execute them in the viewports.
MAXScript Mini Listener | 7311