blender/source/creator
Campbell Barton 02cc80691d python access to driver namespace, rather then have a textblock defined for drivers allow scripts to add functions directly.
- bpy.app.driver_namespace, read-only dictionary, edit in-place.
- reset on file load and new file.
- on errors the namespace used to be reset, this should not be needed.

simple example.

  def driverFunc(val):
    return val * val
  bpy.app.driver_namespace['driverFunc'] = driverFunc

... now all drivers can access this function.
2010-11-27 02:39:51 +00:00
..
buildinfo.c * Enable compile and link flags to build info also on Windows and in SCons. 2010-10-19 05:00:36 +00:00
CMakeLists.txt fix for building with mingw/cmake 2010-11-22 23:25:21 +00:00
creator.c python access to driver namespace, rather then have a textblock defined for drivers allow scripts to add functions directly. 2010-11-27 02:39:51 +00:00
Makefile Update address in license block. 2010-08-10 21:22:26 +00:00
SConscript rename and negate DISABLE_PYTHON --> WITH_PYTHON 2010-10-31 04:11:39 +00:00