Create or import nCaches

You can create single or multiple nCaches for your Nucleus objects or fluid effects, each of which can be comprised of a single frame, multiple frames, or a range of frames. If you create more than one nCache for a Nucleus object or fluid effect, you can then blend its caches to create new simulations and effects. See Blend and set the weighting of nCaches from the Attribute Editor.

For nCloth, nParticle, and nHair caches, you can specify the properties saved in the nCache file by selecting them in the Caching section of the object's Attribute Editor. See Create and edit nCloth caches and Create and edit nParticle caches. For fluid caches, you can specify which fluid properties are saved in the cache file by selecting them in the Create Fluid nCache Options window. See Create fluids cache files.

Note:

In addition to creating new nCaches, you can also import nCaches that you have previously created. Importing nCaches override or replace any existing cache data attached to your objects.

To create a new nCache

  1. Select the Nucleus or fluid object(s) you want to nCache.
  2. Depending on the object type, in the FX menu select one of the following:
    • nCache > Create Cache > nObject .
    • nCache > Create Cache > Maya Fluid > .
  3. (Optional) If an nCache file with the same name already exists in the directory specified in the Create nCache Options Options window, the Create Cache Warning message appears.

    Do one of the following:

    • Click Rename to change the name of the cache you want to create. The Create nCache Options or Create Fluid nCache Optionswindow appears. Type a new name for the new cache in the Cache Name field and click Create. See nCache Options.
    • Click Auto-rename to create a new nCache file. The new cache file is saved to a new folder on disk, the object’s current nCache file is detached from its cache node, and the new nCache file is attached to the object’s cache node.
    • Click Cancel to exit the Create New Cache operation.
    • Click Replace Existing to create a new nCache file. The object’s current nCache file on disk is replaced with the new nCache file, and the new nCache file is attached to the object’s cache node.

    Your objects’ simulations are cached using the current caching settings.

    Single or multiple .mcx cache files and an .xml description file are generated and stored in the directory you specified in the Create nCache Options or Create Fluid nCache Options window. cacheFile nodes (named nObjectShape#Cache# by default) are also added to your objects, and any existing nCache nodes are disabled so that you can see only the new caches playback.

    Note:

    When an nCache exceeds the 4GB cache size limit, it is automatically split and the resulting cache segments are blended.

    If you selected a single object, the following files are created:

    File Distribution # of nCache files created # of XML description files created # of nCache nodes created
    One File 1 1 1
    One File Per Frame Multiple, 1 for each frame 1 1

    If you selected multiple objects, the following files are created:

    File Distribution # of nCache files created # of XML description files created # of nCache nodes created
    One File 1 1 Multiple, one for each object
    One File Per Frame Multiple, one for each frame 1 Multiple, one for each object
    One File and One File per Geometry Multiple, one for each object Multiple, one for each object Multiple, one for each object
    One File Per Frame and One File per Geometry Multiple, one for each frame, for each object Multiple, one for each object Multiple, one for each object
    Tip:

    When caching a number of Nucleus objects that are part of a single Maya Nucleus system, disable the system’s Maya Nucleus solver to avoid playback slow downs.

To import an nCache

  1. Select the object for which you want to import an existing nCache from disk.
  2. In the FX menu set, select nCache > Attach Existing Cache File > .

    The Import file browser window appears. See nCache menu.

  3. Navigate to the nCache file(s) you want to use for your object and do one of the following:
    • For a single nCache file, select either the .mcx cache file or the .xml description file for the One File cache you want to import to the current object.
    • For multiple nCache files, select the .xml description file for the One File Per Frame cache files you want to import to the current object.
      Note:

      The nCache you want to import must have been generated from the same topology as the selected object.

  4. Click Import.

    A new cacheFile node is created for the imported nCache and it is automatically attached to the selected object’s cacheBlend node. This allows you to combine the imported cache with any of the selected object’s existing nCaches.