Learning MAXScript

Welcome to Learning MAXScript. This introductory reference helps you get started using MAXScript, the scripting language that is built into 3ds max.

Learning MAXScript can be used as an introductory reference. However, it is most useful if read straight through as a tutorial. You can follow the examples in this reference by using drag-and-drop or copy-and-paste to bring the code from this document into the MAXScript Listener. You can also type in your own text and start experimenting with MAXScript as you learn it.

Getting Started

Accessing MAXScript

Source Code Layout

Entering Information into MAXScript

Assigning Variables

Mathematical Operations in MAXScript

Working with 3ds max Objects

Drawing a Box with MAXScript

Modifying the Box

Applying Standard Transformations

More Box Transformations

Creating Your Own Scripts

The Script Editor

Controlling Program Flow in Scripts

Defining Custom Functions

Structure Definitions

3ds max Commands in MAXScript

Where to Go From Here

Saving your Commands in a Script File

Loading and Running Your Script File

Loading Other Scripts

Learning MAXScript by Walking Through a Script

Learning MAXScript with the Macro Recorder

Some Advanced Topics Include:

Action Manager

ActiveX Controls in MAXScript Rollouts

Asset Browser enhancements

Curve Control

Customize The Order of Rollup Pages

General Event Callback Mechanism

iDrop - drag and drop

Interfaces

Menu Manager

Network Render Interface

Parameter Wiring

Quad Menu

Scripted Custom Attributes

Scripted Manipulators

Visual MAXScript

Zip-file Script Packages