Painting nCloth properties
 
 
 

In a real dress, the area around the breasts (the bodice) is often made of a stiffer material to ensure the cloth does not hang loose. In order to simulate a bodice on your nCloth dress you will use the Paint Vertex Tool to paint Input Attract values on specific areas of the dress.

To paint Input Attract

  1. Go to the first frame of the scene.
  2. Select the dress and open the Attribute Editor.
  3. Select the nClothShape1 tab and in the Dynamic Properties section set Input Mesh Attract to 1.0.
  4. Select nCache > Create New Cache.

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

  5. Playback the scene.

    The dress now maintains its shape. This is because the Input Mesh Attract value you set in step 3 makes the nCloth mimic the shape of its input mesh. The input mesh is the original polygon mesh from which the nCloth dress was created.

  6. Select nMesh > Paint Vertex Properties > Input Attract > .

    In the Tool Settings Editor, the Paint nCloth Attributes Tool becomes the current tool.

  7. Click the Reset Tool button and then set the following settings:
    • Radius(U): 3.0
    • Radius(L): 3.0
    • Paint Operation: Replace
    • Value: 0

    Move the cursor to the dress and you will notice that the cursor becomes an artisan brush.

  8. Paint over a portion of the dress.

    Notice that the portion you paint over turns black. Black regions of the dress indicate an input attract value of 0 meaning that those areas will be fully dynamic when the simulation is played back. Conversely, white regions indicate an input attract value of 1 meaning those areas will remain identical to the input mesh throughout the simulation.

  9. Select nCache > Create New Cache.

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

  10. Playback the nCloth simulation.

    The dress now maintains its shape everywhere except those places which you painted with the cursor. This is because the areas that you painted now have an input attract value of 0, making them fully dynamic.

  11. Click the Flood button.

    The entire dress turns black indicating that a value of 0 has been applied to the Input Mesh Attract attribute for the entire dress.

  12. Set Value to 1.
  13. Using the Tool brush, paint around the top of the bodice.

    Make sure to dolly and tumble the camera to ensure you have painted the entire top of the bodice.

  14. Set Value to 0.5.
  15. Using the Tool brush, paint the rest of the bodice. Be careful not to paint over your previous values.
  16. Dolly and tumble to ensure that you have painted the entire bodice.
  17. Select nCache > Create New Cache.

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

  18. Playback the nCloth simulation.

    The dress now appears to be made of a light silk, except around the bodice where it maintains its shape. If your dress does not appear as the example below, you may need to increase the values painted on your bodice.

This completes the first half of the nCloth clothing lesson. In the second half of the lesson you will work with an animated character.