This page describes some of the files found in the Scripts/Examples directory. Most sources are well-commented and can be used as addition to this document.
This file was formerly known as Demo.ms and was written by the original developer of MAXScript to provide the first steps in learning the capabilities of the language. It can be very helpful for new users and also has a certain historical value for advanced users!
From the source code comments: "This script is intended to give an interactive walk-through of some of MAXScript's main features. The best way to view this file is to step through it in the MAXScript listener window." See code comments for details!
Example_Bank and Turn.ms
A bank-and-turn function that takes any animated object (not just one that is animated along a path) and will generate bank and turn keyframes, with controls similar to those in the path controller.
Demonstrates basic object creation operations like array of objects, changing properties, randomizing values etc.
A tutorial demonstrating the use of script controllers.
Creates a pattern of boxes.
Creates an Excel OLE object and an Excel chart. Opens Excel, creates a spreadsheet and animates a 3d chart. Requires Excel to run.
This script takes a prototype object animated along a bezier spline path and creates randomized copies of it to generate an approximated flocking motion. You can set radnomizing values beliow that control how much the path and timing of each cone is perturbed
The flocking-by-path functions required by the file Example_FLOCKING.ms
this is a utility that lets you pick a particle system and a source of scene objects and will make copies of the source, 1 for each particle and then animate them to follow particle movement - essentially turning any of the legacy MAX particle systems into a geometry-based system.
This is a scripted utility that can be used to generate a random set of copies of a picked object. Once created, you can twiddle the spinners to make live changes to the copy count and position and rotation spreads. It also has a prune-overlaps button which using an intersection pruning function you might find generally useful.
A scripted function that does the same as the Reset Transform Utility.
3ds Max 6 and higher provide direct access to the Reset XForm Utility functionality, but this function can be very useful to learn the ways object transformations work under the hood in 3ds Max!
This function generates a mesh bounded by the 1st curves in the two given splines and that has the given number of segments along curves.
This script creates and moves a set of spheres on a helical path. Each sphere accelerates with different magnitudes as they move.
Spline Designer / Function Parsing script. Shows how to use the Execute command to parse a maths function and plot a graph (and then build a spline) with it.
A utility function that will generate a new scene object by detaching the currently selected faces in the given object. You could modify this to take or compute the faces to detach as you need.
This function generates a 'dump' of all the accessible properties on the object or objects you give it.
This file contains a set of utility functions for working with objects by name in a scene.
Rounds a value to n decimal places.
Bcircle Function - This function draws a circle in a bitmap.
BEllipse Function - This function draws an ellipse in a bitmap.
BLine Function - This function draws a line in a bitmap.
Demonstrates the import of animation from an external ASCII file (ASCII.dat) using MAXScript.
Shows the very basic form of a Dialog definition.
Shows the very basic form of a Rollout Floater definition.
Shows the very basic form of a Utility definition.
Sample files showing practical usage of the PainterInterface : ReferenceTarget
Utility for establishing/previewing near/far switching distance on discrete LOD object representations