In addition to controlling modeling and animation, MAXScript scripts can invoke 3ds max menu and toolbar commands. You do this using the "max" keyword. For example:
max file open
max unhide all
max quick render
The keyword max is followed by one or more words that describe the command. The available commands can be displayed by using the "?" character in a partial max command. For example:
max time ? -- shows all the time-related commands
max sel ? -- shows all the commands with 'sel' in them as a substring
max ? -- shows all the commands (there are a lot)
Below is a partial list of the available commands to give you an idea of the type of 3ds max commands you can perform with MAXScript. For a complete list, see the 3ds max Commands topic in the MAXScript reference.
3ds max Command Name |
Command Description |
---|---|
max ? |
Displays all max commands in the Listener |
max delete |
Deletes selected objects or sub-objects |
max file new |
Displays the new file dialog |
max file open |
Displays the open file dialog |
max file save |
Activates File/Save |
max move |
Activates Select and Move mode |
max properties |
Displays the Object Properties Dialog |
max quick render |
Performs a quick render |
max redo |
Performs a redo operation |
max reset file |
Activates File/Reset |
max rotate |
Activates Select And Rotate mode |
max select |
Activates select mode |
max select all |
Selects all objects |
max time end |
Sets the time slider to the end frame (Go to End) |
max time start |
Sets the time slider to the start frame (Go to Start) |
max undo |
Performs an undo operation |
max unfreeze all |
Unfreezes all objects |
max unhide all |
Unhides all objects |
max vpt front |
Sets the active viewport to Front |
max zoomext sel |
Activates Zoom Extents Selected |
Next Topic