0
$\begingroup$

I am using anaconda 3 and I want to know how to execute blender from python. Since python can be called from inside blender so it has to be possible vice versa. Does anyone know how to do this? Please help me by providing the procedure for setting up the environment for this.

$\endgroup$
3
$\begingroup$

The easiest way would be to use the subprocess module to start Blender.

import subprocess

subprocess.run(["/path/to/blender", "somefile.blend"])

Since python can be called from inside blender so it has to be possible vice versa.

This is not a very logical statement. Just because Blender embeds Python doesn't mean anything when it comes to starting Blender from Python.

$\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.