Learning MAXScript with the Macro Recorder

Another useful tool for learning MAXScript is the Macro Recorder.

If you want to learn how to perform a task in MAXScript, you can use the Macro Recorder to get started.

The Macro Recorder captures many of the actions performed by the user, and generates the MAXScript commands that correspond to those actions.

The Macro Recorder output is displayed in the top pane of the MAXScript Listener window. This pane has a pink background.

The Macro Recorder has several filtering options that control what types of user actions are recorded, whether the generated script commands contain explicit object references or are selection-relative, and whether the generated MAXScript commands contain explicit or relative transforms and coordinates. These options can be set using the Macro Recorder menu in the Listener window.

Many user actions generate Macro Recorder output, but not all of them. In general, most of the buttons on the Menu Bar, toolbars, Status Bar, Create panel, and Modify panel generate Macro Recorder output. If the button invokes a secondary dialog, changing setting or performing actions in the secondary dialog typically will not generate Macro Recorder output. In the Create and Modify panels, Macro Recorder output is generated if MAXScript can create the object or modifier.

This makes the Macro Recorder a useful too for learning MAXScript, as you can perform tasks in the UI and simultaneously see how to perform these same tasks with MAXScript.

For further documentation on the Macro Recorder, see the Macro Recorder topic.