Extensions:2.6/Py/Scripts/Import-Export/Export PC2 Pointcache
UI location | File > Export > Pointcache (.pc2) | ||
---|---|---|---|
Version | 1 | Author(s) | Florian Meyer (tstscr) |
Blender | 2.5.5 Rev:#33047 | License | GPL |
File name | io_export_pc2.py |
---|---|
Current version download | https://svn.blender.org/svnroot/bf-extensions/contrib/py/scripts/addons/io_export_pc2.py |
About
This exporter produces .pc2 pointcachefiles. These can be used to transfer animated meshes to external applications. Only the vertex positions at the samples are saved.
The exporter can export meshes, surfaced curves, surfaces and font objects. They are all treated as meshes. The base object has to be converted into a mesh before exporting it also.
Installation
To install the the script:
- Script is preinstalled
- Enable the Add-On from the Add-Ons tab in the User Preferences window
Use
Select File > Export > Pointcache (.pc2) to enter the exporter. From there, check the options you wish to use for export, choose a file path, and then click Export.
Here is a brief description of the options:
- Convert to Y-up: Rotates the meshdata -90 degrees around X.
- Export into Worldspace: Transform the meshdata into worldspace.
- Apply Modifiers: Wether to apply modifiers before exporting.
- Start Frame: First frame to export.
- End Frame: Export up to this frame.
- Sampling: The samplerate. 1 means one sample per frame. 0.1 means 10 samples per frame, and 10 means one sample every 10 frames.
The use of these files depends on the importing application. In general the object has to be first exported normally (obj export or the like) and then the pointcache data can be attached to the object.
- In 3dsMax there is a modifier which can directly read .pc2 files.
- In Maya the .pc2 cache has to be converted into Maya's geometry cache format first.
- The mel command for that is this:
- cacheFile -pc2 1 -pcf "<insert filepath of source>" -f "<insert target filename w/o extension>" -dir "<insert directory path for target>" -format "OneFile";
- The mel command for that is this:
- Back to Extensions:2.5/Py/Scripts