PointConstraint

Applies a constraint that translates the base object to a point defined by the target object(s). See also OrientConstraint and ParentChildConstraint.

Connection Type

Connection Name

Function

Input

input

The place in the node graph where you want to constrain the translation of the base object to that of the target object.

 

Control (UI)

Default Value

Function

basePath

None

Defines the location of the object to constrain. The location parameter options are available by clicking the dropdown menu.

For more information, refer to the Scene Graph Location Widget Type in Common Parameter Widgets.

targetPath

None

Defines the location of the object(s) to constrain the object in basePath to. If you set multiple targets, then the constraint moves to the average center of the objects. The targetPath parameter options are available by clicking Add Locations or dropdown menu.

For more information, refer to the Scene Graph Location and Locations Widget Types in Common Parameter Widgets.

baseOrigin

Object

Sets how the center of the base object is calculated:

Object - uses the local origin of the object as the position of the base object.

Bounding Box - uses the center of the object's bounding box as the position of the base object.

targetOrigin

Object

Sets how the center of the target object is calculated:

Object - uses the local origin of the object as the target.

Bounding Box - uses the center of the object's bounding box as the target.

Face Center Average - uses the face center average of the object as the target.

Face Bounding Box - uses the face center average of the object's bounding box as the target.

allowMissingTargets

No

When set to Yes, silently ignore the constraint if its target is not in the scene graph.

When set to No, produce an error on constraint resolution if the target is missing.

xAxis

disabled

Constrains the x Axis.

yAxis

disabled

Constrains the y Axis.

zAxis

disabled

Constrains the z Axis.

addToConstraintList

No

Adds base path to globals.constraintList at /root/world.

This is only needed for cases in which one constraint depends on another constraint already being evaluated. The globals.constraintList is used to specify the order of evaluation of constraints.

setRelativeTargets

No

Stores target paths in the scene graph constraint definition as paths relative to the base path.

Targets should still be specified as absolute paths in this node's parameters.