Documentation - Maxscript

< Back to main maxscript documentation

Transform_Constraint : Matrix3Controller


A Transform_Constraint causes an object's transform to follow the transform of an object or averaged transform of several objects.

An Transform Constrained object can be any type of object that inherits its transform from a target object. Once constrained you can not transform the object manually.

The target object can be any type of object. The transform of a target object drives the constrained object. Targets can be animated using any of the standard translation, rotation, scale tools.

Properties

<Transform_Constraint>.relative Boolean default: false

Get/Set the keep initial offset parameter.

<Transform_Constraint>.local_world Integer default: 0

Get/Set the transform rule:

0 - Local.
1 - World.

Methods

<integer> <Transform_Constraint>.GetNumTargets()

Returns the number of target nodes in the target list.

<node> <Transform_Constraint>.GetNode <index>nodeNumber

Returns the indexed target node.

<float> <Transform_Constraint>.GetWeight <index>targetNumber

Returns the weight of the indexed target if the targetNumber is relevant, 0.0 otherwise.

<boolean> <Transform_Constraint>.SetWeight <index>targetNumber <float>weight

Sets the weight of the indexed node specified by targetNumber . Returns True on success, False otherwise.

<boolean> <Transform_Constraint>.AppendTarget <node>target <float>weight

Appends the specified node to the list and sets its weight to the specified value. Returns True on success, False otherwise.

<boolean> <Transform_Constraint>.DeleteTarget <index>targetNumber

Deletes the indexed target. Returns True on success, False otherwise.



< Back to main maxscript documentation