Go to:
Related nodes. Attributes.
This node implements a pointConstraint. 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 pointConstraint, the extra
information is stored in offset and constraintOffsetPolarity
attributes.
The pointConstraint 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:
pointConstraint attribute |
connected to |
targetTranslate |
translate |
targetRotatePivot |
rotatePivot |
targetRotateTranslate |
rotatePivotTranslate |
targetParentMatrix |
parentMatrix[i] |
targetWeight |
set to 1.0 |
The targetWeight attribute is not generally connected to the
target object. Instead, it may be animated by other means to
adjust the weighted average computation for the target point.
The pointConstraint node uses these inputs to compute the world
space position of the pivot point of each target object. It then
computes a weighted average of the these pivot points. This
weighted average is called the target point.
The constrained object is connected to the constraint*
attributes. For a pointConstraint, the constraintRotatePivot,
constraintRotateTranslate, and constraintParentInverseMatrix are
inputs to the pointConstraint. The attribute constraintTranslate
is the only output.
The pointConstraint node computes an output translation value
such that the pivot point of the constrained object is offset by
offset * constraintOffsetPolarity from the target point.
Although the all the constraint nodes inherit from transform,
they do not actively use any of the attributes from transform.
Node name | Parents | MFn type | Compatible function sets |
---|
pointConstraint | constraint | kPointConstraint | kBase kNamedObject kDependencyNode kDagNode kTransform kConstraint kPointConstraint |
Related nodes
aimConstraint, geometryConstraint, orientConstraint, normalConstraint, parentConstraint, poleVectorConstraint, scaleConstraint, tangentConstraint, lookAt
Attributes (37)
constraintOffsetPolarity, constraintParentInverseMatrix, constraintRotatePivot, constraintRotatePivotX, constraintRotatePivotY, constraintRotatePivotZ, constraintRotateTranslate, constraintRotateTranslateX, constraintRotateTranslateY, constraintRotateTranslateZ, constraintTranslate, constraintTranslateX, constraintTranslateY, constraintTranslateZ, offset, offsetX, offsetY, offsetZ, restTranslate, restTranslateX, restTranslateY, restTranslateZ, target, targetParentMatrix, targetRotatePivot, targetRotatePivotX, targetRotatePivotY, targetRotatePivotZ, targetRotateTranslate, targetRotateTranslateX, targetRotateTranslateY, targetRotateTranslateZ, targetTranslate, targetTranslateX, targetTranslateY, targetTranslateZ, targetWeight
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 | |
|
|
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 | | |
|
|
offset
(o )
| double3 | | |
|
| offsetX
(ox )
| distance (double) | 0.0cm | | |
|
| offsetY
(oy )
| distance (double) | 0.0cm | | |
|
| offsetZ
(oz )
| distance (double) | 0.0cm | | |
|
|
constraintOffsetPolarity
(cop )
| double | 1 | |
|
|
constraintTranslate
(ct )
| double3 | 0.0, 0.0, 0.0 | |
|
| constraintTranslateX
(ctx )
| distance (double) | 0.0cm | | |
|
| constraintTranslateY
(cty )
| distance (double) | 0.0cm | | |
|
| constraintTranslateZ
(ctz )
| distance (double) | 0.0cm | | |
|
|
restTranslate
(rst )
| double3 | 0.0, 0.0, 0.0 | |
|
| restTranslateX
(rtx )
| distance (double) | 0.0cm | | |
|
| restTranslateY
(rty )
| distance (double) | 0.0cm | | |
|
| restTranslateZ
(rtz )
| distance (double) | 0.0cm | | |
|