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$

1 Answer 1

3
$\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$
2
  • $\begingroup$ Thank you! I think the second link would make a good basis for what I want. $\endgroup$ Feb 4, 2021 at 8:07
  • $\begingroup$ Great link, thank you also! $\endgroup$ Jan 26 at 22:27

You must log in to answer this question.

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