View Single Post
Old 22nd November 2006, 06:49 PM   #1
Junior Member
Junior member
Join Date: Aug 2006
Posts: 5
Post Script: a hierarchy tree structure & properties managing script (1.0 beta)


Word about myself. I'm a Blender user and I write some time ago a AC3D export script, which provide very easy hierarchy tree & properties managing capabilitys.

I made some changes to the script to make it work with .ac files too.



I write an experimental python script for the AC3D users. The target is easier hierarchy tree and properties managing.

zip file contains these four files

You must have a python installed to your computer to run this script:

The script combine the text file data with source .ac file geometry and texture data to the '' file .

The source .ac, .txt files and '' template file with file must place to same folder.

The .txt text file format is same with my Blender export script. Check the “The ‘htp.txt’ format” part::

The 'htp.txt' format

NO KIDS FOR THE OBJECTS: will cause a corrupted AC3D file
NO EMPTY LINES: Will cause ‘ValueError: object ":" not found’ error
NO GROUPS WITHOUT KIDS: will cause ‘ValueError: object "xxxx" not found’ error
NO MISTYPED OBJECT NAMES OR CASES: will cause ‘ValueError: object "xxx" not found’ error


------ The beginning of the htp.txt text object/file-------------------------------------
[#] optional header text
[#] optional footer text
--------- The end of the htp.txt text object/file-----------------------------------------

The script will skip all #-marks and also the texts, which right side of it.
This gives an option to use header, footer texts and also the notes.

There must be always the 'world,' in top-left of the hierarchy tree. The 'world,' don’t have any properties.
Use only tabulators for the hierarchy tree creation. Any spaces will cause corrupted .ac file and / or a script error.
After tabulator comes immediately the group/object name.
The object names are case sensitive. NOTE! The Blender object and mesh names must complete match.
After the group/object name comes the immediate comma and one space.
The lines must end with immediate enter.


In case of the note, there must be a one space before #-mark and the note.

The ready text file must have same name with .ac file.

Once files are ready, double click the file and dialog opens

Type in the .ac file name with 's, like picture below

Remember, the script will over write the file everytime so, save the result.
Xjazz is offline   Reply With Quote