myCache

This C++ example demonstrates how to write your own exporter for cache files. The example uses the ICEAttribute and CICEAttributeDataArray classes.

Example Files

Files
myCache.cpp
myCache.vcproj
GNUmakefile

Building the myCache Example

Softimage SDK includes a compiled version of myCache. If you want to modify the code, you can rebuild the example by following these instructions.

To build the example on Windows

  1. Open an Softimage command prompt, and type devenv to start Visual Studio .NET.

    Starting Visual Studio .NET from an Softimage command prompt ensures that environment variables such as XSISDK_ROOT are set (otherwise you'll get build and link errors).

    Tip To load the myCache project from the command line, type:

    devenv myCache\myCache.vcproj
  2. In Visual Studio .NET, open the project file .vcproj.
  3. Select a configuration (Release or Debug) and build the DLL.

To build the example on Linux

  1. In a shell (tcsh) window, type:

    source $XSI_HOME/.xsi_<xsi_version>
  2. Change directories to

    cppsrc_myCache
  3. To remove all intermediate files before building the example, run this command:

    gmake clean
  4. To compile the example, run this command:

    gmake

Running the Example

To run the exporter example

  1. On the main Softimage menubar, click on File, then on Preferences and finally on Simulation to open up the simulation preferences.
  2. In the FileName field, change the extension of the file to .myCache.
  3. Create any geometry (PolygonMesh,PointCloud,etc).
  4. On the Animate toolbar, click on Plot, then on Cache Manager....
  5. Click on Write Cache to write out the files.
  6. Keywords

    This example uses the following keywords:

    import, export, ascii, cache, xml, example, c++