Create an nHair Component to Component constraint

You can create a Component to Component constraint to attach hair system curves to other nHair curves or to other Nucleus objects components. For example, you can constrain selected hair curve CVs to the vertices of a passive collision hair clip or barrette so that it holds the hair in place.

  1. In the scene view, select the hair curve CVs you want to constrain. See Select curve components for nConstraints.
  2. Select the target components of the Nucleus object to which you want to constrain the selected hair curve CVs. If you select edges or faces, then all their vertices will be constrained to the hair.
    Note:

    If you selected target components on a non-Nucleus object, that object will be made a passive object when the constraint is created.

  3. In the FX menu set, select nConstraint > Component to Component.

    The hair curve CVs you selected are now constrained to the selected target vertices, and they are now connected to the nHair system's Maya Nucleus solver through a dynamicConstraint node.

    The preset properties on the dynamicConstraint node determine the constraint’s type (in this case, a Component to Component constraint) and how it behaves. For example, you can create a Component to Component constraint with the following attribute settings:

    • Spring as the Constraint Method
    • All to All as the Component Relation
    • Nearest Pairs as the Connection Method
    • See dynamicConstraintShape.

Related topics