jonahhawk
12-31-2008, 03:56 AM
How do I select the target(or targets) of a Lookat_Constraint?
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:
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.
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:
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.
