diff options
author | Campbell Barton <ideasman42@gmail.com> | 2009-12-07 23:49:12 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2009-12-07 23:49:12 +0300 |
commit | ce49719a0c9baf75576929f956e1224fcd46afc7 (patch) | |
tree | 89aac7dbd05abff24e19096f332349d9496ab90a /source/blender/editors | |
parent | f350cde18c2103d6a78e4d5d14f9b57cbaab1a1e (diff) |
use the SUM driver type to avoid adding all values on each bone.
also avoids hitting the 255 string limit if you want to add 100's of values. eg.
>>> b05/max(0.001, [globals().update({"LOCALS":locals(), "ADD":float.__add__, "reduce":__import__("functools").reduce}), 0.0][1], max((, [LOCALS["b%.2d" % (i+1)] for i in range(5)])))
Since this more simple expression reaches the limit fairly quick...
>>> b05/max(0.001,b01+b02+b03+b04+b05)
Diffstat (limited to 'source/blender/editors')
0 files changed, 0 insertions, 0 deletions