Call Python script

hi forum. is it possible to call python script from processing sketch. thank you

You could use launch():

Or directly manipulate Java’s Process class as on this example sketch link:

1 Like

This won’t work if you use the Processing PDE, but you can use py5 to make arbitrary calls from Processing to Python.

https://py5coding.org/content/processing_mode.html

py5’s Processing mode adds a callPython() method to Processing. You can pass Java objects to Python and the Python code can return Python objects back to Java.

The example code in this folder will help you:

1 Like