Posted: Wed Oct 17, 2012 9:43 am
Joined: 18 Mar 2012
Posts: 13
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
Posted: Wed Oct 17, 2012 4:21 pm
Joined: 05 Apr 2009
Posts: 732
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/architecture/blender-file-format/_________________
I'm sitting, waiting, wishing, building Blender in superstition...
Posted: Wed Oct 17, 2012 5:01 pm
Joined: 05 Aug 2003
Posts: 3518
| Quote: |
| 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.
Posted: Wed Oct 17, 2012 5:04 pm
Joined: 18 Mar 2012
Posts: 13
| 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/architecture/blender-file-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.
Posted: Wed Oct 17, 2012 8:46 pm
Joined: 05 Apr 2009
Posts: 732
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/blender_python_api_2_64a_release/info_tips_and_tricks.html#don-t-use-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...
Posted: Thu Oct 18, 2012 4:04 pm
Joined: 05 Aug 2003
Posts: 3518
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.