1
$\begingroup$

Is there a way for an external process (e.g. shell command) to cause Blender to execute a fragment of Python code (on Linux)?

Essentially I would like to make my own version of the "Python Console" that runs separately and sends commands to Blender (which is already running and continues to run as normal with commands being received in the background.)

$\endgroup$
2
$\begingroup$

I see two approaches to this.

  1. You can compile entire blender as python module (completely without user interface) and use it inside an external python script.

https://wiki.blender.org/wiki/Building_Blender/Other/BlenderAsPyModule

  1. A custom solution. as described here.

How to remotely run a Python script in an existing Blender instance?

$\endgroup$
1
  • $\begingroup$ Thank you! I think the second link would make a good basis for what I want. $\endgroup$ – Luke Gorrie Feb 4 at 8:07

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.