PDC_Export

This C++ example demonstrates writing your own exporter for Maya PDC cache files. The example uses the MDAttribute as well as the CMDAttributeDataArray.

Example Files

Location
Files
PDC_Exporter.cpp
PDC_Exporter.vcproj
GNUmakefile

Building the PDC_Export Example

Softimage SDK includes a compiled version of PDC_Export. 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 PDC_Export project from the command line, type:

    devenv PDC_Export\PDC_Export.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_PDC_Export
  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 .PDC.
  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++