Share
 
 

Maxscript Process

Uses Maxscript to process channel data. See the Data Channel Modifier topic in the MAXScript Help for a detailed explanation of this operator.

Maxscript Process rollout

Edit Script button
Opens an editor for the Maxscript Process operator's code. The operator has a default script that demonstrates how to set up the "Process()" function to manipulate channel data. This script can be edited to perform custom functions.
Output: Element Type
The type of data the script should output, for example vertex or face.
Output: Index Channel
Sets the data channel index for the output, if any. Can be "position", "normal" or "map channel", or "none" for no channel.
Output: Data Type
The type of data that should be produced. For example, if the operator should produce vertex position data, this should be set to "Point3 Array", where the array contains a Pont3 value for each vertex in the mesh .

The Output parameters are all supplied to the MAXScript process() function as parameters.

Using the default script

When a Maxscript Process operator is added to a Data Channel Modifier stack, it contains a default script. To use this script:

  1. Create a box and add a Data Channel Modifier to it.
  2. In the Data Channel Modifier UI, add a Vertex Inpurt, a Maxscript Process, and a Vertex Output.
  3. Select the Maxscript Process operator, and set the Output options to the following:
    • Element Type: Vertices
    • Index Channel: Position
    • Data Type: Point3 Array
  4. Now scrub the time slider. You will see the box moving along the X axis, with the X axis values increasing or decreasing in sync with the time slider. If you open the Listener, you will see some output from the script.

Was this information helpful?