How can I get equivalent python code for a created blend file from blender. I want to generate java code for corresponding python code of a blender. I am unable to get python code of blender file either inside or outside the blender.
$\begingroup$
$\endgroup$
3
-
$\begingroup$ I am not sure what you want. Do you want python code that generates the vertices and faces of a model in your .blend file? Blender has a python API, but internally it is programmed in C. And the abstract data structures Blender uses internally can not be exported directly as a python script. $\endgroup$– maddin45Commented Jun 2, 2014 at 11:21
-
$\begingroup$ Question is not a duplicate, but is related to: blender.stackexchange.com/questions/2410 $\endgroup$– ideasman42Commented Jun 2, 2014 at 11:31
-
$\begingroup$ You could elaborate on what exactly you are trying to do. Probably better solutions exist. $\endgroup$– ideasman42Commented Jun 3, 2014 at 1:46
Add a comment
|
1 Answer
$\begingroup$
$\endgroup$
Blender has no facility to write a .blend
file as a series of Python instructions.
For limited uses you could write your own script (Its been done before for rigify armatures for eg), but for the entire blend file this becomes a large task.