The Blender export application usually writes out all of the 3D objects in a single Blender file into a single export file. However, it is usually desirable to import each individual object into the Jet gaming engine as a separate resource file. The job of the file splitter is to split the objects into separate files as directed by an external text file that links specific object (mesh) names to specific export files. This process has two primary advantages over exporting objects into their own files directly from Blender:
This application has changed as follows:
8/29/2001 | Released the initial version. |
9/23/2001 |
Added the ability to ignore lamps and cameras which the new Blender export script can now export. |
The split control file is named: BlenderExportSplitCtrl.txt. The demo file has the following contents:
FILE: ExportGridCube.txt GridCubeObject FILE: ExportSmallCube.txt FaceObject TheCubeObject File ends.
Each line that starts with the word FILE: defines a separate output file.
Each line after a file definition line defines the name of a mesh object to be exported to that tile.
The line File ends. defines the end of the file.
Mesh names may appear under as many files as you wish, or may be excluded from the control file altogether. Each time the file splitter application runs, it replaces all the existing export files with new ones based on the current contents of the main Blender export file created by the Blender Python script. For this reason, it is best to always export and split the whole Blender file so you don't inadvertently create empty files with the splitter application.