Go to: Related nodes. 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 |
aimConstraint, geometryConstraint, orientConstraint, normalConstraint, parentConstraint, poleVectorConstraint, scaleConstraint, tangentConstraint, lookAt
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 | ![]() ![]() ![]() ![]() ![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
constraintParentInverseMatrix
(cpim )
| matrix | identity | ![]() ![]() ![]() ![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
constraintRotatePivot
(crp )
| double3 | ![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
constraintRotateTranslate
(crt )
| double3 | ![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
offset
(o )
| double3 | ![]() ![]() ![]() ![]() ![]() | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
constraintOffsetPolarity
(cop )
| double | 1 | ![]() ![]() ![]() ![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
constraintTranslate
(ct )
| double3 | 0.0, 0.0, 0.0 | ![]() ![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
restTranslate
(rst )
| double3 | 0.0, 0.0, 0.0 | ![]() ![]() ![]() ![]() | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|