Author Topic: New Blender export script  (Read 887 times)

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
New Blender export script
« on: July 24, 2006, 04:02:45 PM »
Hi

With new script user don't need to create a hierarchy tree any more in Blender.
The script will totally follow the ah_opd.txt data, which contain the hierarchy tree structure and properties data.

The ah_opd.txt file format:

The dots are added just to show the hierarchy tree structure in this bb.

# possible comment
.+(number of the kids if group) (name of the group), (properties) # possible comment
....- (name of the object), (properties)

Export script:
http://warezhouze.1g.fi//public_html/Here/Blender3d/AH2v24b.py

Handy script to set selected object(s) to the ground level. Not coded by me.
http://warezhouze.1g.fi//public_html/Here/Blender3d/RestOnGround.py

 I will do better instruction later on

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
New Blender export script
« Reply #1 on: July 25, 2006, 12:06:03 AM »
I notest the links don't work. Here is the new one:

http://warezhouse.1g.fi/here/Blender/

Offline detch01

  • Silver Member
  • ****
  • Posts: 1788
New Blender export script
« Reply #2 on: July 25, 2006, 09:59:26 AM »
Thx XJazz :) The scripts look great. I'll try them both out this week.



Cheers,
asw
asw
Latrine Attendant, 1st class
semper in excretio, solum profundum variat

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
New Blender export script
« Reply #3 on: July 25, 2006, 04:29:24 PM »
Hi detch01

Please, let me know how it workout. Thanks

I made an AHuntitled.blend template file, which contains a four preset window configurations:
- 1-Model 1view
- 2-Model 4view
- 3-Texturing
- 4-HT & FLAGS:This picture shows nicely the 'ah_opd.txt' file format.

You can select these from the top of the screen or scroll with CTRL+L/R ARROW keys.

Offline Bogie603rd

  • Silver Member
  • ****
  • Posts: 1563
      • http://603sqdrn.collectivelyspaced.com
New Blender export script
« Reply #4 on: July 28, 2006, 12:30:23 PM »
Alright, im new to the Blender, so i'm wondering. Since it says I no longer have to perform the hierarchy tree, will I still have to edit the "ah_opd.txt" file? Or does the script pretty much do everything for you?
No. 603 Squadron... Visit us on the web, if you dare:
http://603sqdrn.collectivelyspaced.com
Join our TeamSpeak server, Click Here.

New forum ID: Denholm

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
New Blender export script
« Reply #5 on: July 28, 2006, 02:28:44 PM »
Hi Bogie

You don’t need to do group(empty)- object parenting anymore.

Write a text file with any text-editor or with Blender’s internal editor and save it with ‘ah_opd.txt name to the same folder your target *.blend file.

Make sure the format is right and object names are matching. Use the tabulator to create the structure.

http://warezhouse.1g.fi/here/Blender/4.jpg

The picture contains error. The ‘ah_opd.txt file object name (Cube) don’t match with  the blender object/mesh name (sbb1).

Offline Bogie603rd

  • Silver Member
  • ****
  • Posts: 1563
      • http://603sqdrn.collectivelyspaced.com
New Blender export script
« Reply #6 on: July 28, 2006, 03:37:51 PM »
Wow, when I asked for sand-bags I wasnt expecting a huge block from the map room! Nice job.... Thanks for the tip:D
No. 603 Squadron... Visit us on the web, if you dare:
http://603sqdrn.collectivelyspaced.com
Join our TeamSpeak server, Click Here.

New forum ID: Denholm

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
New Blender export script
« Reply #7 on: July 28, 2006, 05:13:28 PM »
Hi

Few words about the script using

Materials
Script doesn’t support the real materials. Only AH related material numbers are parsed to the AC3D file.

Press the F5 key until you can see menu like in below picture
http://warezhouse.1g.fi/here/Blender/matnum.jpg

Write to the ‘Link To Object’ field a AH material number.


Before you export

Once object is complete and ah_opd.txt file done, save and close the files.

Open your target .blend file again but directly by double clicking it. Now run the export script.

If you open the .blend file from the blender, for some reason the script don’t find the ah_opd.txt file. I don’t know why.


Know issues
-   No true material support, like said
-   No support for polylines or N/FGONs
« Last Edit: July 28, 2006, 05:52:18 PM by Xjazz »

Offline Bogie603rd

  • Silver Member
  • ****
  • Posts: 1563
      • http://603sqdrn.collectivelyspaced.com
New Blender export script
« Reply #8 on: July 29, 2006, 11:07:18 AM »
Alright, this really helps. I appreciate it!:cool:
No. 603 Squadron... Visit us on the web, if you dare:
http://603sqdrn.collectivelyspaced.com
Join our TeamSpeak server, Click Here.

New forum ID: Denholm

Offline Xjazz

  • Gold Member
  • *****
  • Posts: 2653
New Blender export script
« Reply #9 on: August 24, 2006, 02:55:01 PM »
Hi

I was testing a AH material support for the blender when it hit... The AH2v14b script has an error in material definition lines  :(

The fixed version, AH2v14.py is available here. Use a 'Save As..'.

Sorry about possible problems.