|
|
Thread Tools | Display Modes |
22nd November 2006, 06:49 PM | #1 |
Junior Member
Junior member
Join Date: Aug 2006
Posts: 5
|
Script: a hierarchy tree structure & properties managing script (1.0 beta)
Hi
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. ---- Hi I write an experimental python script for the AC3D users. The target is easier hierarchy tree and properties managing. http://warezhouze.1g.fi/Here/AC3D/HTP4ac1b0.zip zip file contains these four files http://warezhouze.1g.fi/Here/AC3D/files.jpg Requirement You must have a python installed to your computer to run this script: http://www.python.org/download/releases/2.4.4/ Function The script combine the text file data with source .ac file geometry and texture data to the 'combined.ac' file . Usage The source .ac, .txt files and 'combined.ac' template file with HTP4ac1b0.py 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 Example ------ The beginning of the htp.txt text object/file------------------------------------- [#] optional header text WORLD[,] [tab]MODEL[,][space]property1{enter) [tab][tab]OBJECTS[,][space]property1(enter) [tab][tab][tab]STR01[,][space]property1(enter) [tab][tab][tab][tab]CIT01[,][space]property1(enter ) [#] 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. OR 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 HTP4ac1b0.py file and dialog opens http://warezhouze.1g.fi/Here/AC3D/dialog.jpg Type in the .ac file name with 's, like picture below http://warezhouze.1g.fi/Here/AC3D/typein.jpg Remember, the script will over write the combined.ac file everytime so, save the result. ---- |
|
|