(c) 2014 Carles F. Julià [email protected]
May be you are like me and love Python and openFrameworks, or maybe you just need to embed a scripting engine and dislike Lua. Lua is nice but Python comes full of batteries.
This addon allows you to embed a Python interpreter into an openFrameworks application, and offers Python bindings to many OF functions, so you can draw from Python code.
This addon uses the common swig bindings for OF.
See license.md. Spoiler alert: it's MIT
Drop the folder into the OF/addons/
folder. If your project generator is clever enough it will copy the OF/addons/ofxPython/lib/openframeworks.py
file into the data/
folder, copy it manually otherwise.
You will need Python (2.7 tested) installed in order to compile your program.
It is now compiling both in Linux64, Windows (Code::Blocks) and OSX. Generated for OF 0.8.4
In case that you want to regenerate the bindings, do so with SWIG:
$ cd swig
$ make desktop LANG=python SWIG=swig3.0 DEST_LANG_DIR=../lib
- Not fully tested
Please do! Open issues, send pull requests etc.