OrientConstraint
OrientConstraint matches the rotation (orientation) of the object in basePath to the object in targetPath. See also ParentChildConstraint and PointConstraint.
Connection Type |
Connection Name |
Function |
Input |
input |
The place in the node graph where you want to constrain the rotation (orientation) of an object. |
Control (UI) |
Default Value |
Function |
basePath |
N/A |
Sets the location of the object to constrain. The basePath 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 |
N/A |
Sets the location of the object(s) to constrain the object in basePath to. The targetPath parameter options are available by clicking the dropdown menu. For more information, refer to the Scene Graph Location Widget Type in Common Parameter Widgets. |
targetOrientation |
Object |
Sets the type of bounds to use for the target object(s): • Object • Face |
When targetOrientation: Face |
||
targetFaceIndex |
0 |
This is the faceset index to use as the target. You can orient to match the object itself, or a particular face of it, for example, selecting a poly by index of geometry.poly.startIndex. |
OrientConstraint parameters continued |
||
xAxis |
Enabled |
Constrains the x Axis. |
yAxis |
Enabled |
Constrains the y Axis. |
zAxis |
Enabled |
Constrains the z Axis. |
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. |
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. |