Commit Graph

4 Commits

Author SHA1 Message Date
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
081c1205a3 correct fsf address 2010-02-12 13:34:04 +00:00
65af9585b2 SVN maintenance. 2010-02-01 00:04:28 +00:00
74535c435f missed this file 2010-01-31 23:21:33 +00:00