LookAt_Constraint : RotationController

LookAt_Constraint - superclass: RotationController; super-superclass:MAXWrapper - 11:0 - classID: #(8225, 0)

Look-At Constraint constrains an object's orientation so that it's always looking at another object.

Note:

The old Look At Controller, which is a full transform controller, will be invisible to the user unless an old file is loaded. The new LookAt Constraint Controller is a rotation controller and NOT a TM controller which the old LookAt was. The old LookAt will be phased out.

At this time, old LookAt.IsPublic returns zero, so that the users won't see the old LookAt. However, the old MAX files will still load the old LookAt and the camera and the light will continue to use the old LookAt.

Constructor

LookAt_Constraint ...

Properties

<LookAt_Constraint>.relative Boolean default: false -- boolean

 

<LookAt_Constraint>.lookat_vector_length Float default: 100.0 -- animatable; float; Vector_Length

 

<LookAt_Constraint>.set_orientation Boolean default: false -- boolean

 

<LookAt_Constraint>.target_axis Integer default: 2 -- integer

 

<LookAt_Constraint>.target_axisFlip Boolean default: false -- boolean

 

<LookAt_Constraint>.upnode_axis Integer default: 0 -- integer

 

<LookAt_Constraint>.upnode_world Boolean default: true -- boolean

 

<LookAt_Constraint>.pickUpNode UndefinedClass default: undefined -- node; Pick_Upnode

 

<LookAt_Constraint>.StoUP_axis Integer default: 0 -- integer

 

<LookAt_Constraint>.StoUP_axisFlip Boolean default: false -- boolean

 

<LookAt_Constraint>.viewline_length_abs Boolean default: true -- boolean; Viewline_Abs

 

LookAt_Constraint interfaces:

Interface: constraints

Methods:

<integer>getNumTargets()

Returns the number of target nodes in the target list.

<node>getNode <index>targetNumber

Returns the indexed target node.

<float>getWeight <index>targetNumber

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

<boolean>setWeight <index>targetNumber <float>weight

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

<boolean>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>deleteTarget <index>targetNumber

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

 

See also Class IposConstPosition, in the SDK Help file accompanying this product.

See also

Link_Constraint : Matrix3Controller

LookAt_Constraint : RotationController

Path_Constraint : PositionController

Position_Constraint : PositionController

Orientation_Constraint : RotationController

Controller Functions for Use with Constraint Assignments