Tips
 
 
 

This section provides tips that can help you better use nCloth in your work.

General Maya Nucleus solver and nCloth tips

The following is a general list of pointers that can help you use the Maya Nucleus solver and nCloth.

Dynamics

Gravity

Collision iterations and substeps

Space scales

Performance

Constraints

Resolving sharp edges or pointy corners

Improving scrubbing/rewinding nCloth animation after caching

Once you’ve finished caching your scene and you’re happy with the results of the simulation, you can disable the nucleus node. When the nucleus node is disabled no simulation occurs, allowing you to scrub through, or rewind through the cached animation more quickly.

To disable the nucleus node, in the Attribute Editor, turn off the Enable attribute.

nCloth thickness and self-collisions

With medium density meshes, you may find that the Thickness (nClothShape node) must be set to a high value to get the self-collisions you require. However, this often leaves your nCloth object looking bloated and disproportionate.

To remedy this, you can use the Self Collide Width Scale (nClothShape node), which allows you to scale an nCloth’s input and output meshes’ Thickness without bloating the nCloth object.

Constraints with Sets and Dependency Graph loops

Typically, constraints are created using vertices on the output nCloth mesh. This is not recommended for constraints using sets. When you create a dynamic constraint with the Use Sets option (in the Create Dynamic Constraint Options window) turned on, the sets must be created on the input mesh because they affect the behavior of the output mesh. If your sets are not created on the input mesh, you may create a Dependency Graph loop.

To hide the output mesh and edit the set, select nMesh > Display Input Mesh.

To edit constraint sets, use the nConstraint > Add Members, nConstraint > Remove Members and nConstraint > Replace Members menu items.

If you prefer to use the Sets Relationship Editor, be sure to add only input mesh elements of the same type (all vertices, faces, or edges).

Constraints with Sets and constraint membership

When you create a dynamic constraint with the Use Sets option (in the Create Dynamic Constraint Options window) turned on, many more nodes and connections are created. Currently, there are no restrictions on editing the sets to maintain valid membership in the nComponent node, thus allowing for errors.

Instead of using sets, you can modify constraint membership easily with the nConstraint > Add Members, nConstraint > Remove Members and nConstraint > Replace Members menu items.

Constraints with long links

Constraints that have long links (because the objects are far apart) may cause popping because small vibrations on the constraining surface are magnified on the target surface.

If you must have long constraint links, lower your Strength and Tangent Strength (dynamicConstraintShape node) settings. Lowering these settings will provide the constraint links some slack, which prevents popping.