FILE READER V1.0 (for trueSpace 4.x)
Description:

Version 1.0 (13 Dec 01)
Added GUI window to script. The script is set to run ascii text files.

Version 1.0 (27 Nov 01)
This script was written for the purpose of reading data produced by an external source (Model & Sim files) and applying it to a TS object model. Data files are currently set to read comma "," delimited data. You may change the delimination in the code where the "Split" command appears.

The data file has a 2 line header that must be included on every data file: fps and title row.
The first line FPS or frames per second will time out the input data in TS based on the rendering format you are using (PAL 25,NTSC 30) and must be in this format: fps,30,,,,,
The second header line is for title purposes explaining what each column of data represents. Example: Time,xpos,ypos,zpos,yaw,pitch,roll

A sample file has been supplied in the zip file.


How to use this script:

There is some scene setup required before running this script.

  1. Load the script under Scene.
  2. Be sure your coordinate system is set to Object rather then World or Screen.
  3. Select the object to apply data to.
  4. Run the script.
  5. Type in the path and filename of the ascii text file.
  6. Type in the data delimiter (default comma ',').
  7. Press "Import!" to run of "Cancel" to quit.

FAQ:

Q: Script errors or crashes.
A: Check your data file to be sure it is properly delimited by the delimiter specified by the DELIM setting

Q: Object moves and rotates improperly.
A: Check your coordinate system and make sure it is set to Object (Body) Orientation.


Download Zipfile: File Reader v1.1 (17k)
Return to Home Page