Coding for .Blender file in a TextEditor ?

An open space where people who use Blender in an academic environment can share progress and the typical problems and needs of academic environments.

Moderators: jesterKing, stiv

spgun
Posts: 13
Joined: Sun Mar 18, 2012 6:31 am

Coding for .Blender file in a TextEditor ?

Postby spgun » Wed Oct 17, 2012 10:43 am

Hi,
Can we code in a TextEditor to develop a Blender 3D model?

Ex : We can code a Java/C++ program in a Text file & save it & run.

Like that, can we do it for .Blender file..?

Is there any file format to study of a .Blender 3D modeling?

Thanks in advance

CoDEmanX
Posts: 894
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Postby CoDEmanX » Wed Oct 17, 2012 5:21 pm

what would this be good for?

of course you could use a hexeditor and write a .blend file manually, but i guess it would take weeks for even simple models.

Makes much more sense to write e.g. OBJ, but still, why would you do that? Blender is a 3D application, to be used for 3D content creation etc.

.blend format specs:
http://www.blender.org/development/arch ... le-format/
I'm sitting, waiting, wishing, building Blender in superstition...

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Wed Oct 17, 2012 6:01 pm

Can we code in a TextEditor to develop a Blender 3D model?


You can write Python scripts to create blender models.

The .blend file format is basically a binary memory dump. You do not want to try and edit this.

spgun
Posts: 13
Joined: Sun Mar 18, 2012 6:31 am

Postby spgun » Wed Oct 17, 2012 6:04 pm

CoDEmanX wrote:what would this be good for?

of course you could use a hexeditor and write a .blend file manually, but i guess it would take weeks for even simple models.

Makes much more sense to write e.g. OBJ, but still, why would you do that? Blender is a 3D application, to be used for 3D content creation etc.

.blend format specs:
http://www.blender.org/development/arch ... le-format/


Thank you very much for the reply.

Actually why I wanted to code it is to customize a 3D model.
If I can do it by editing the .Blend file , then I can change my model.
Rather than opening the model in Blender & modifying the model, that way would be easier(if possible).
That is the reason.

I'm waiting for more advises. :)

CoDEmanX
Posts: 894
Joined: Sun Apr 05, 2009 7:42 pm
Location: Germany

Postby CoDEmanX » Wed Oct 17, 2012 9:46 pm

you need to be more precise about how you wanna change models programmatically, maybe Meshlab scripts can do better than Blender.

You can also automate Blender, see:
http://www.blender.org/documentation/bl ... se-blender

But if your problem is really specific, you should write a Java/C/C#/whatever application and do transformations etc. yourself.
I'm sitting, waiting, wishing, building Blender in superstition...

stiv
Posts: 3646
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Postby stiv » Thu Oct 18, 2012 5:04 pm

Just so we are clear:

Editing the .blend file is not possible (at least in any practical way)

If you want something you can edit, export your .blend in some text format like OBJ.


Return to “Academic & Research”

Who is online

Users browsing this forum: No registered users and 0 guests