-
Notifications
You must be signed in to change notification settings - Fork 7
Home
timknip edited this page Sep 13, 2010
·
37 revisions
Welcome to the asblender wiki!
ASBlender is an Actionscript 3 library to read Blender .blend files.
See blender-file-format for an explanation of the .blend format.
The .blend format contains all C-structures used, which are defined in the so called DNA. This way .blend files are fully backward compatible.
Check out the DNA of a Blender 2.48 .blend.
ASBlender simply reads these structures into AS3 Object’s.
See:
- Main.as for a simple implementation.
- PapervisionTest.as for a simple Papervision implementation.
Hello World:
- First you need the create a
ByteArray
by loading a .blend file or by using[Embed]
. - Create a BlendFile object:
var blend:BlendFile = new BlendFile();
- And read it:
blend.read( theByteArray );
Now you can access the scenes contained in the .blend thru var scenes:Array = blend.scenes
.
Blender can contain more then one Scene, but its likely there’s only one.