Constraining nCloth clothing

 
 
 

Notice when you play back the scene the straps fall off the character’s shoulders as she walks. You can fix this by constraining the straps to her body.

To constrain the dress straps

  1. Go to beginning of the playback range.
  2. Right-click the dress and select Vertex.
  3. Select only the vertices of the dress straps.
  4. Right-click the dress and select Object Mode.
  5. -select the character.
  6. Select nConstraint > Point to Surface.

    An nConstraint creates a dynamic link between an nCloth’s CVs and the components of other nCloths or collision objects. A point to surface constraint attaches nCloth components such as CVs, edges, or faces to a target surface. In this case we are attaching the CVs of the dress straps to the character’s body.

  7. With the newly created constraint still selected, select Display > Hide > Hide Selection.

    The constraint markers disappear to give you a better view of the dress straps.

    Note

    If you de-selected the constraint and have trouble re-selecting it, you can select Window > Outliner to open the Maya Outliner. You can then select the constraint by left-clicking dynamicConstraint1 in the Outliner.

  8. Select the dress.
  9. Select nCache > Create New Cache.

    Maya automatically plays back the nCloth simulation and saves it to disk.

  10. Playback the scene.

    The dress straps now stay with the character’s body throughout the animation.