This C++ example demonstrates writing your own exporter for Maya PDC cache files. The example uses the MDAttribute as well as the CMDAttributeDataArray.
Location | |
Files |
PDC_Exporter.cpp
PDC_Exporter.vcproj
GNUmakefile
|
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
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
To build the example on Linux
In a shell (tcsh) window, type:
source $XSI_HOME/.xsi_<xsi_version>
Change directories to
cppsrc_PDC_Export
To remove all intermediate files before building the example, run this command:
gmake clean
To compile the example, run this command:
gmake
To run the exporter example
This example uses the following keywords:
import, export, ascii, cache, xml, example, c++