[Bf-committers] [#18747] SDNA export to HTML

Jeroen Bakker j.bakker at atmind.nl
Wed May 13 21:40:54 CEST 2009


Hi all,

Could someone review the next "patch". It not really a patch, but a 
developers tool.
Goal is to create a SDNA browser, like as done at www.atmind.nl/blender

It can be run inside blender (blender -P dna.py) or using a full python 
installation (python dna.py). in the last setup a file called dna.blend 
is expected.

Blender 2.5 branch does not support python yet (import Blender fails), 
I've rewritten to run it also outside blender

could someone place this also in the 2.5 branch?
https://projects.blender.org/tracker/index.php?func=detail&aid=18747&group_id=9&atid=127

######################################################
#    Name:
#        dna.py
#        
#    Description:
#        creates a browsable DNA output to HTML.
#        
#    Author:
#        Jeroen Bakker
#        
#    Version:
#        v0.1 (12-05-2009) - migration of original source code to python.
#           Added code to support blender 2.5 branch
#        
#    Input:
#        blender build executable
#        
#    Output:
#        dna.html
#        dna.css (will only be created when not existing)
#
#    Startup:
#        ./blender -P dna.py
#
#    Process:
#        1: write temp blend file with SDNA info
#        2: read blend header from blend file
#        3: seek DNA1 file-block
#        4: read dna record from blend file
#        5: close and delete temp blend file
#        6: export dna to html and css
#        7: quit blender
#
#       the Blender 2.5 branch at this moment does not
#       support this process. Therefore it has to be performed
#       manually:
#       1. start blender
#       2. save scene to "dna.blend"
#       3. start python dna.py
#       Using this method will not delete the "dna.blend"
######################################################




More information about the Bf-committers mailing list