You can open a script file for editing, or you can include it in another script to run automatically when that script runs.
To open a script file for editing:
If you want to edit your script later to add more commands to it, you need to open it:
To evaluate the commands in your script:
If you enter any commands in the Script Editor window manually (not by copying and pasting from the Listener window), you can test the validity of all commands:
If your Listener window isn't open, click the Open Listener menu item in the MAXScript menu.
In the Script Editor window, choose Tools > Evaluate All.
MAXScript evaluates the commands in your script file. It sends any feedback to the Listener window. It also sends each valid command to the user interface as if you had run the script. If your script contains any syntax errors, MAXScript reports those in the Listener window in red.
To include your script in another script:
If you want to write a script for each tutorial (for example one for drawing a box, one for modifying the box, and another one for transforming it), you could then use those three scripts in another one that contains all the box operations. Assuming you had created the scripts box_draw.ms, box_mod.ms, and box_trans.ms, you could then include them in a new script, box_all.ms. The text for box_all.ms would be as follows:
To reset 3ds Max before running scripts:
If you want to start with a new scene before running any scripts, you need to reset the software: