Author Topic: Blender: better import script  (Read 621 times)

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
Blender: better import script
« on: March 09, 2007, 09:15:14 AM »
Hi

I develop a bit current import script.

Now its possible import OE exported objects like hqt0.ac and dbrief.ac. The script is now more robust against bad .ac format caused errors.

http://warezhouze.1g.fi//Here/Blender3d/AH_ac3d2_import.py

Offline Denholm

  • Plutonium Member
  • *******
  • Posts: 9667
      • No. 603 Squadron
Blender: better import script
« Reply #1 on: March 09, 2007, 09:47:56 AM »
Thanks, this will be useful.
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.

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
Blender: better import script
« Reply #2 on: March 09, 2007, 03:54:31 PM »
Hi

Some notes:
http://warezhouze.1g.fi//Here/Blender3d/AH_ac3d_import.jpg (234k)

 The script creates a report from imported .ac file. You can find after the successfull import a 'htp.txt' named Blender text object.

This report format is compatiple with older export script version 1.4:
http://warezhouze.1g.fi//Here/Blender3d/old_stuff/AH2V14b.py

Report features:
Import file name and path are added as topic text.

Every and each group, object and property from imported .ac file are listed. All these are not imported to the Blender due their 'hidden' nature.   These hidden ones are not visible eather in AC3D due decreased 'kids' values. Who knows why.

The vertex count by object,  total vertex count and filled NGON by object notofications are included to the report too.

The htp.txt and Blender outLiner may show a bit different hierarchy tree order. The htp.txt has the correct one.

If you ungroup object(s) to the root/world level, it will rotate -90 degree in X-axis. You can fix this with R-key or or by give a numerical value via N-key.
« Last Edit: March 09, 2007, 03:59:55 PM by Xjazz »