Learning MAXScript by Walking Through a Script

You can learn a lot about MAXScript by just using several different script files. The best method to learn MAXScript commands and command syntax is to step through a script and watch the responses in the Listener window and in the user interface. You can "walk" through a script by loading a script into the Script Editor window and executing one command line or a command block at a time:

To step through a script:

  1. Open a script into the Script Editor window.

  2. Place the cursor into the first command line and press ENTER on the number pad of your keyboard.

The Number Pad <ENTER> key is a shortcut for executing the current command line or the selected block of code.

MAXScript executes the current command line and reflects the outcome in the Listener window and, if appropriate, in the user interface.

  1. Move the cursor to the next command line or select the next block of code from the script. Press the number pad ENTER key again, and so on.

From here on, step through other scripts and take note of the effects. Most of the script files included with 3ds Max are very well commented and include a description about the scripts purpose. For more information about using script files, see the Running Scripts topic in the MAXScript Reference.

Next Topic

Learning MAXScript with the Macro Recorder