Author Topic: Blender: New import script under the developing  (Read 335 times)

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
Blender: New import script under the developing
« 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.

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
Blender: New import script under the developing
« Reply #1 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.

Offline Denholm

  • Plutonium Member
  • *******
  • Posts: 9667
      • No. 603 Squadron
Blender: New import script under the developing
« Reply #2 on: June 21, 2007, 06:52:39 PM »
This is great XJazz, thanks for the awesome scripts.
Get your Daily Dose of Flame!
FlameThink.com
No. 603 Squadron... Visit us on the web, if you dare.

Drug addicts are always disappointed after eating Pot Pies.