You can create a Transform constraint to hold specific nHair curves CVs in place or move them through XYZ space.
To create an nHair Transform constraint
- In the scene view, select the hair curve CVs you want to constrain. See Select curve components for nConstraints.
- In the FX menu set, select .
The nHair curve CVs you selected are now constrained to their current positions in X, Y, and Z space, and a Transform constraint locator is created for the selected nHair curve components.
The curves are also now connected to the nHair system's Nucleus solver through a dynamicConstraint node.
The preset properties on the dynamicConstraint node determine the constraint’s type (in this case, a Transform constraint) and how it behaves. For example, you can create a Transform constraint with the following attribute settings:
- Spring as the Constraint Method
- All to First as the Component Relation
- Within Max Distance as the Connection Method
Within Max Distance works well with nHair Transform constraints.
- (Optional) Parent the Transform constraint's dynamicConstraint node under the skeleton model to ensure that constraint moves with an animated character.