Or better yet, how do I understand this section of the help file. I understand .properties when I see them in the help. But the <rules> of methods aren't clear to me. I just don't script enough...
From the Max Help:

Quote:

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.

theController = theObj.rotation.controller --this is the rotation (LookAt) ConstraintController:LookAt_Constraint
--Now loop from 1 to the number of targets in the constraint and collect
--each node into an array called theTargets:
theTargets = for i = 1 to theController.getNumTargets() collect theController.getNode i#($Sphere:Sphere01 @ [-77.946899,-10.454015,0.000000], $Sphere:Sphere02 @ [-43.879711,-0.831173,0.000000], $Sphere:Sphere03 @ [17.187794,69.950142,0.000000])

Follow Us On:

The CGSociety

The CGSociety is the most respected and accessible global organization for creative digital artists. The CGS supports artists at every level by offering a range of services to connect, inform, educate and promote digital artists worldwide. More about us on TheArtSociety.com