Blend nCaches

 
 
 

Blend nCache clips

You can blend nCache clips to create smooth, seamless transitions between your object’s overlapping cache clips.

Note

Blending nCache clips is not fully supported for nHair caches

nCache clips are blended automatically. By default, all the overlapping regions of your enabled nCache clips are automatically blended together using their cache clip’s current weight settings. See Input Weights.

nCache weights are normalized between overlapping cache clips. So if two overlapping cache clips have the same weight values (i.e. 1.0 and 1.0, 0.5 and 0.5 and so on), then they will both equally contribute to the simulation in their cache blend regions on playback.

You can adjust the smoothness of your cache clips’ blends by adjusting their weight settings, or by manipulating their weight curves. For example, if you have two overlapping cache clips, one from frames 0-200 and the other from frames 100-300, and both their Input Weights are set to 0.5 (50%), then both cache clips equally contribute to their object’s deformations from frames 100-200 during playback.

Tip

If you want the final simulated state from one cache clip to continue influencing its object’s simulation in the next cache clip, use a Hold. See Hold nCache clips.

Sequential cache clips are not blended. When there are gaps between your nCache clips, they are filled with the live playback of your object’s original (source) simulation—not interpolated cache data.

Create and adjust nCache clip weight curves

You can create weight curves for your nCache clips. These weight curves let you adjust how your nCache clip’s simulation ease in and out of their blend regions.

To create and adjust nCache clip weight curves

  1. In the scene view, select the object whose cache clip weight curves you want to create and adjust.
  2. In the Trax Editor, select List > Load Selected Characters.

    All the current object’s caches appear as clips in the track view.

  3. Select the nCache clip whose weight curve you want to create and adjust.
  4. -click the cache clip and select Create Weight Curve from the context-sensitive menu that appears.

    A weight curve is created for the selected cache clip.

  5. Do one of the following:
    • In the Trax toolbar, click the Graph Weight Curves button ().
    • -click the selected cache clip and select Graph Weight from the context-sensitive menu that appears.

    The Graph Editor opens with the selected cache clip’s weight curve framed in its graph view.

  6. Adjust the shape of your cache clip’s weight curve by doing the following:
    • Move the weight curve’s keys or key tangents.

    Select the Move Tool from the Maya toolbox, and -drag the keys or their tangent handles to change the shape of the weight curve.

    • (Optional) Add new keys to the weight curve.

    Select the Insert Keys Tool () Graph Editor’s toolbar, and -click the weight curve to add additional keys to the weight curve.

    You can then use these new keys and their tangent handles to further manipulate the shape of the weight curve.

    The modified weight curve now appears on the selected nCache clip in the track view area.

    Tip

    In the Attribute Editor, you can also key the Input Weight attributes on your object’s caches’ cacheBlend tabs to create nCache weight curves for your objects.

Blend and set the weighting of nCaches from the Attribute Editor

Blend nCaches and set their weights

If an object has more than one nCache attached to it, then a cacheBlend node is automatically created to define and manage the weighting of the object’s multiple nCaches. See cacheBlend.

When nCaches overlap in time, their overlapping cache regions are automatically blended together using the caches’ current Input Weight values on their cacheBlend nodes.

Also, cache weights are normalized between overlapping caches. So if two overlapping caches have the same weight values (i.e. 1.0 and 1.0, 0.5. and 0.5 and so on), then they will both equally contribute to the simulation in their cache blend regions on playback.

To blend nCaches and set their weights

  1. Select the object whose cache weights you want to adjust.
  2. In the Attribute Editor, select the cacheBlend tab.
  3. In the Input Weights section, adjust the weight values for each of your object’s caches by dragging their respective sliders or by entering values into their weight fields.

    When an nCache’s weight is 1.0, it is blended with the current object’s other caches and it fully contributes to the object’s cloth effects during playback.

    When an nCache’s weight is 0.0, it is not blended with the current object’s other caches and it does not contribute to the object’s cloth effects during playback.

  4. (Optional) Animate your nCaches’ weights to increase or decrease their contributions to their blended cloth effects over time.

    After you adjust each cache’s weight value, -click on their weight attributes and select Key Selected from the context-sensitive menu that appears.

    This adds keys to your nCaches, creating weight curves. You can then manipulate these weight curves to smooth the transitions between your object’s overlapping (blended) caches.

Paint nCloth Cache weights

You can interactively apply, distribute, and blend the weights of multiple caches on a single nCloth object by painting your nCloth object’s cache weights directly on its surface. This allows you to direct and manipulate the weights of an nCloth in an artistic fashion. For example, with the Paint Cache Weights Tool you can paint one cache on the sleeve of an nCloth jacket, paint another cache on the main body of the nCloth jacket, and then blend the two caches at the jacket’s shoulder to create a smooth transition from the sleeve’s nCloth cache to the main body of the jacket’s nCloth cache.

Note

You can only use the Paint Cache Weights Tool with nCloth objects. It can not be used with nParticle or fluid objects.

To paint nCloth cache weights

  1. Select the nCloth object whose cache weight values you want to paint.
  2. In the nDynamics menu set, select nCache > Paint Cache Weights Tool.

    The Paint Cache Weights Tool settings appear in the Tool Settings window. See nCache > Paint Cache Weights Tool.

  3. In the Tool Settings window, select the nCloth cache you want to paint the weights for from the Cache list.
  4. Select a Paint operation, and then adjust the Value and Opacity of the tool’s brush.

    For descriptions of these tool settings, see Artisan Tool Settingsin the Artisan guide.

  5. (Optional) In the Attribute Maps section of the tool settings, import an existing nCloth cache weight map for the nCloth cache whose weights you want to paint on your object. See Attribute Maps section in the Artisan guide.
  6. In the scene view, drag the Paint Cache Weights Tool along the surface of your nCloth object to change its cache weighting vertex by vertex.
    NotePainted nCloth cache weights are normalized.

    This means that if any of your nCloth caches have the same painted weight values (for example, 1.0 and 1.0, 0.5. and 0.5 and so on), then those caches will equally contribute to their nCloth object’s simulation on playback.