[Bf-committers] Generic Java .blend import/export based on StructDNA

Ton Roosendaal ton at blender.org
Wed Nov 25 17:59:29 CET 2015


Hi,

The ID and LI structs are both defined in DNA_ID.h
I suggest you try irc.freenode.net #blendercoders ? Might be faster for tech questions and quick replies.

-Ton-

--------------------------------------------------------
Ton Roosendaal  -  ton at blender.org   -   www.blender.org
Chairman Blender Foundation - Producer Blender Institute
Entrepotdok 57A  -  1018AD Amsterdam  -  The Netherlands



> On 25 Nov, 2015, at 17:52, homac <homac at strace.org> wrote:
> 
> Hey there!
> 
> This is mainly addressed to *Ton Roosendaal 
> <http://wiki.blender.org/index.php/User:Ton>* and *Brecht Van Lommel* 
> (i.e. module *Core/Data System/DNA*) 
> <http://wiki.blender.org/index.php/User:Brecht>
> 
> 
> I'm aiming to create a generic (any version) import/export of Blender 
> files for Java.
> 
> So far, I've developed a tool which uses the type information from your 
> StructDNA to generate Java classes which serve as type safe facets to 
> access data from .blend files. Finally found a suitable concept for the 
> type mapping to Java (considering pointers, type casts and the dirty 
> stuff possible in C ;)).
> 
> Now, I wanted to add a loader which actually just needs to organise the 
> incoming data, which comes in instances of the generated data model, in 
> some "Library". The same way as you do it in struct Main (BKE_main.h). 
> But I have to admit, that I've got lost in your code there - because you 
> are scanning for blocks with IDs "LI" and "ID" which does not exist in 
> my reference file (v2.69).
> 
> Are those not in all files or is that code for earlier file versions? 
> I've read the short intro in blendloader/internal/readfile.c which made 
> me confused looking at the content of my file.
> 
> Can someone of you give me some (brief) hints on how it is supposed to work?
> 
> 
> Regards
>  Holger
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at blender.org
> http://lists.blender.org/mailman/listinfo/bf-committers



More information about the Bf-committers mailing list