Blender Git Commit Log

Git Commits -> Revision c301499

Revision c301499 by Campbell Barton (master)
February 20, 2011, 23:39 (GMT)
Experimental option to build blender as a python module, rather then blender embedding python.
CMake build option WITH_PYTHON_MODULE, will build ./bin/bpy.so

This allows 'bpy' to be imported from python or other applications/IDE's which embed python, eg:
python -c "import bpy ; bpy.ops.render.render(write_still=True)"

This runs in background mode and has similar restrictions to running a script:
blender --background --python test.py

TODO:
- install to site-packages with blender scripts
- add support for imp.reload()

Commit Details:

Full Hash: c30149991c9417106577e2d96112b16433910215
SVN Revision: 35005
Parent Commit: 55a0e21
Lines Changed: +115, -16

9 Modified Paths:

/build_files/cmake/macros.cmake (+2, -2) (Diff)
/CMakeLists.txt (+4, -0) (Diff)
/source/blender/editors/render/render_internal.c (+1, -1) (Diff)
/source/blender/python/intern/bpy.c (+7, -3) (Diff)
/source/blender/python/intern/bpy.h (+1, -1) (Diff)
/source/blender/python/intern/bpy_interface.c (+60, -4) (Diff)
/source/blender/python/intern/CMakeLists.txt (+4, -0) (Diff)
/source/creator/CMakeLists.txt (+15, -2) (Diff)
/source/creator/creator.c (+21, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021