Aces High Bulletin Board

General Forums => Terrain Editor => Topic started by: Xjazz on June 07, 2007, 04:09:54 PM

Title: Blender: New import script under the developing
Post by: Xjazz on June 07, 2007, 04:09:54 PM
Hi

I'm developing a bit the Blender AC3D AH friendly import script again.

My scope:
- Make a imported 'htp.txt' data a AH2V19 export script compatible.
- Ignore the original hierarchy tree / groups, when importing the object/mesh data.
- Show true hierarchy tree & properties content of the source .ac file in Blender's 'htp.txt' text object.

You can see the current state import result in this picture:
http://www.warezhouze.1g.fi/Here/Blender3d/pics/New_import_script_otw.jpg

As you can see, the OE exported 'bas0.ac' file actually contains much more data , than AC3D will present in Model Information report (F6-key). The AC3D only shows the hierarchy tree to the last format logical point (group d4) and everything else after that will be hidden.

Before the release, I need to solve the Blender's object name indexing logic problem and sync the mesh object names with the 'htp.txt' text object names.
Title: Blender: New import script under the developing
Post by: Xjazz on June 21, 2007, 05:10:02 PM
Hi

I update the import and export scripts bit and made a new small utile.

http://www.warezhouze.1g.fi/Here/Blender3d/AH_scripts/Blender_scripts.zip


The zip packet contain following scripts:

The AH2 ac3d import script v2.1, which actually has following parts:
- AH2_ac3d_import_2b1.py, the main import script.
- acRmv1b1.pyc, the htp.txt data processing module (byte compiled).
- acRmv1b1.py, the 'source code' of the acRmv1b1.pyc module.

The import script now creates the complete htp.txt text object.
The import process indexing all sub-objects as a o(2 digit running number)_(object name).


The AH2 ac3d export script v2.0:
- AH2_ac3d_export_2b0.py.

The export script can handle the o(2 digit running number)_(object name) indexing  and strip it off before the .ac file writing.
The version 1.9 has coding error which was causing a corrupted .ac file if two similar starting group names were existing.
Limitations: No support ngon or polywire. Avoid identical group and object names.


The selected objects to the htp.txt text object:
- AH2_List_Objects0b1.py

This script read selected object names and creates the htp.txt text object and write names to there.
If htp.txt already existing the script creates a new with .00* index tag.
Title: Blender: New import script under the developing
Post by: Denholm on June 21, 2007, 06:52:39 PM
This is great XJazz, thanks for the awesome scripts.