Blender Git Commit Log

Git Commits -> Revision 873e2ea

Revision 873e2ea by Martin Poirier (master)
June 12, 2006, 00:10 (GMT)
== Python Button Evaluation ==

Users can write any valid Python expression (that evals to an int or float) inside Blender's gui number buttons (preceded by #) and have them evaluated to their actual int or float value.

Button Evaluation has access to the same modules as PyDrivers.

For example:

#1.0*9-2.3
#ob("Camera").LocZ
#1.0/ob("Cube").LocX
#math.sin(math.pi) -- or simply #m.sin(m.pi)
etc

Commit Details:

Full Hash: 873e2eaae3c59f468d169d95e20436bd57f39deb
SVN Revision: 7692
Parent Commit: 7cad5ce
Lines Changed: +88, -4

5 Modified Paths:

/source/blender/blenkernel/bad_level_call_stubs/stubs.c (+4, -1) (Diff)
/source/blender/blenkernel/BKE_bad_level_calls.h (+2, -0) (Diff)
/source/blender/python/BPY_extern.h (+2, -0) (Diff)
/source/blender/python/BPY_interface.c (+68, -0) (Diff)
/source/blender/src/interface.c (+12, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021