This node implements an aimConstraint. Each constraint has a set of
targets that are connected under the target attribute, a single
constrained object that is connected to the constraint* attributes,
and possibly other information to help compute the correct results.
In the case of the aimConstraint, the additional information is:
aimVector, upVector, worldUpVector, worldUpMatrix, and
worldUpType.
The aimConstraint node can have any number of target inputs. Each
target is connected to attributes inside a single element of the
target attribute. For example, the first target object would be
connected elements of target[0], the second target object would be
connected to elements of target[1], etc. The elements of each
target are: targetTranslate, targetRotatePivot,
targetRotateTranslate, targetParentMatrix, and targetWeight.The
elements of each target are normally connected to the target
objects as follows:
| Long name (short name) |
Type |
Default |
Flags |
|
target
(tg) |
compound |
n/a |
     |
|
targetTranslate
(tt) |
double3 |
|
    |
|
targetTranslateX
(ttx) |
distance
(double) |
0.0cm |
    |
|
|
targetTranslateY
(tty) |
distance
(double) |
0.0cm |
    |
|
|
targetTranslateZ
(ttz) |
distance
(double) |
0.0cm |
    |
|
|
|
targetRotatePivot
(trp) |
double3 |
|
    |
|
targetRotatePivotX
(trpx) |
distance
(double) |
0.0cm |
    |
|
|
targetRotatePivotY
(trpy) |
distance
(double) |
0.0cm |
    |
|
|
targetRotatePivotZ
(trpz) |
distance
(double) |
0.0cm |
    |
|
|
|
targetRotateTranslate
(trt) |
double3 |
|
    |
|
targetRotateTranslateX
(trtx) |
distance
(double) |
0.0cm |
    |
|
|
targetRotateTranslateY
(trty) |
distance
(double) |
0.0cm |
    |
|
|
targetRotateTranslateZ
(trtz) |
distance
(double) |
0.0cm |
    |
|
|
|
targetParentMatrix
(tpm) |
matrix |
identity |
    |
|
|
targetWeight
(tw) |
double |
1.0 |
    |
|
|
constraintParentInverseMatrix
(cpim) |
matrix |
identity |
    |
|
aimVector
(a) |
double3 |
1.0,0.0,0.0 |
    |
|
aimVectorX
(ax) |
double |
1.0 |
    |
|
|
aimVectorY
(ay) |
double |
0.0 |
    |
|
|
aimVectorZ
(az) |
double |
0.0 |
    |
|
|
upVector
(u) |
double3 |
0.0,1.0,0.0 |
    |
|
upVectorX
(ux) |
double |
0.0 |
    |
|
|
upVectorY
(uy) |
double |
1.0 |
    |
|
|
upVectorZ
(uz) |
double |
0.0 |
    |
|
|
worldUpVector
(wu) |
double3 |
0.0,1.0,0.0 |
    |
|
worldUpVectorX
(wux) |
double |
0.0 |
    |
|
|
worldUpVectorY
(wuy) |
double |
1.0 |
    |
|
|
worldUpVectorZ
(wuz) |
double |
0.0 |
    |
|
|
worldUpMatrix
(wum) |
matrix |
identity |
    |
|
worldUpType
(wut) |
enum |
3 vector |
    |
|
constraintTranslate
(ct) |
double3 |
|
    |
|
constraintTranslateX
(ctx) |
distance
(double) |
0.0cm |
    |
|
|
constraintTranslateY
(cty) |
distance
(double) |
0.0cm |
    |
|
|
constraintTranslateZ
(ctz) |
distance
(double) |
0.0cm |
    |
|
|
constraintRotatePivot
(crp) |
double3 |
|
    |
|
constraintRotatePivotX
(crpx) |
distance
(double) |
0.0cm |
    |
|
|
constraintRotatePivotY
(crpy) |
distance
(double) |
0.0cm |
    |
|
|
constraintRotatePivotZ
(crpz) |
distance
(double) |
0.0cm |
    |
|
|
constraintRotateTranslate
(crt) |
double3 |
|
    |
|
constraintRotateTranslateX
(crtx) |
distance
(double) |
0.0cm |
    |
|
|
constraintRotateTranslateY
(crty) |
distance
(double) |
0.0cm |
    |
|
|
constraintRotateTranslateZ
(crtz) |
distance
(double) |
0.0cm |
    |
|
|
constraintRotateOrder
(cro) |
enum |
0 |
    |
|
constraintJointOrient
(cjo) |
double3 |
|
    |
|
constraintJointOrientX
(cjox) |
angle (double) |
0.0deg |
    |
|
|
constraintJointOrientY
(cjoy) |
angle (double) |
0.0deg |
    |
|
|
constraintJointOrientZ
(cjoz) |
angle (double) |
0.0deg |
    |
|
|
constraintRotate
(cr) |
double3 |
|
  |
|
constraintRotateX
(crx) |
angle (double) |
0.0deg |
  |
|
|
constraintRotateY
(cry) |
angle (double) |
0.0deg |
  |
|
|
constraintRotateZ
(crz) |
angle (double) |
0.0deg |
  |
|
|
constraintVector
(cv) |
double3 |
|
  |
|
constraintVectorX
(cvx) |
distance
(double) |
0.0cm |
  |
|
|
constraintVectorY
(cvy) |
distance
(double) |
0.0cm |
  |
|
|
constraintVectorZ
(cvz) |
distance
(double) |
0.0cm |
  |
|
|
offset
(o) |
double3 |
|
    |
|
offsetX
(ox) |
angle (double) |
0.0deg |
     |
|
|
offsetY
(oy) |
angle (double) |
0.0deg |
     |
|
|
offsetZ
(oz) |
angle (double) |
0.0deg |
     |
|
|
restRotate
(rsrr) |
double3 |
|
    |
|
restRotateX
(rrx) |
angle (double) |
0.0deg |
    |
|
|
restRotateY
(rry) |
angle (double) |
0.0deg |
    |
|
|
restRotateZ
(rrz) |
angle (double) |
0.0deg |
    |
|
|
useOldOffsetCalculation
(uooc) |
bool |
false |
    |