Go to: Related nodes. Attributes.

This node implements (part of) a geometryConstraint. 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 geometryConstraint, there is no additional information.

The geometryConstraint 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: targetGeometry and targetWeight.

The elements of each target are normally connected to the target objects as follows:

geometryConstraint attribute connected to
targetGeometry worldSpace
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 orientation.

The constrained object is connected to the constraint* attributes. For a geometryConstraint, the attribute constraintParentInverseMatrix is an input and the attribute constraintGeometry is the only output.

The geometryConstraint node simply provides on its output (constraintGeometry), the input with the largest targetWeight value. If more than one target has the same value, the one with the lowest target index is returned. This output geometry is then passed to the geometry attribute of a transform which causes the transform to constrain its translate values.

Although the all the constraint nodes inherit from transform, they do not actively use any of the attributes from transform.

Node nameParentsClassificationMFn typeCompatible function sets
geometryConstraintconstraintanimationkGeometryConstraintkBase
kNamedObject
kDependencyNode
kDagNode
kTransform
kConstraint
kGeometryConstraint

Related nodes

aimConstraint, orientConstraint, normalConstraint, parentConstraint, pointConstraint, poleVectorConstraint, scaleConstraint, tangentConstraint, lookAt

Attributes (5)

constraintGeometry, constraintParentInverseMatrix, target, targetGeometry, targetWeight

Long name (short name)TypeDefaultFlags
target (tg) compoundn/aarrayoutputinputconnectablestorable
Bundle of input geometry and weight
targetGeometry (tgm) Genericn/aoutputinputconnectablestorable
input geometry to which the object should be constrained
targetWeight (tw) double1.0outputinputconnectablestorablekeyable
Input weight for the geometry, the largest weight wins
constraintParentInverseMatrix (cpim) matrixidentityoutputinputconnectablestorable
Input parent inverse matrix for the object
constraintGeometry (cgm) Genericn/aoutputconnectable
output geometry to which the object should be constrained