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.)


1 Answer 1


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.


  1. A custom solution. as described here.

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

  • $\begingroup$ Thank you! I think the second link would make a good basis for what I want. $\endgroup$ Commented Feb 4, 2021 at 8:07
  • $\begingroup$ Great link, thank you also! $\endgroup$ Commented Jan 26, 2023 at 22:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .