2
$\begingroup$

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.

$\endgroup$
  • $\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$ – maddin45 Jun 2 '14 at 11:21
  • $\begingroup$ Question is not a duplicate, but is related to: blender.stackexchange.com/questions/2410 $\endgroup$ – ideasman42 Jun 2 '14 at 11:31
  • $\begingroup$ You could elaborate on what exactly you are trying to do. Probably better solutions exist. $\endgroup$ – ideasman42 Jun 3 '14 at 1:46
1
$\begingroup$

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.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.