New Driver type "Sum Value with step" then input "step value" for each Variable
"Sum Values" Driver type is good option when set Driver for simple Sum value. so we can avoid custom function and do not need to afraid about limit of expression.
But it only work as Sum each variable values. = A + B + C + D + ........
I have seen many case my driver expression need to set Sum values with multiple float value (step value, or multipller)
Like (A * 0.588 + B 0.7995 + C 0.8666 + D 0.7566 + E 0.568 + F*0.965.... )
Of course I know we need not use Any Driver type, when generate Driver expression by code, but some driver often need long expression Then it cause limit over characters of expression string.
The length of scripted expression strings is limited to 256 characters
it not matter, 256 or 512, and even though expression not cause limit over flow, if there is Driver type, which can count Step values for each Variable. and user may input step value, only when it need, for each Variable, then get Sum, it make user easy to make driver without set long expression.
5 Comments
Try this:
Additional function related: Bether way to make drawing from 3D to 2D Draft with description of objects/elements
ManBlender I approve all node things improvement . At same time about this case, I concentrate most simple case which enhance current Driver type to make character importer drivers without add new huge custom props just for multiple prop value with step value and get Sum. Unfortunately there seems no way to avoid it. Or need to use custom function >> performance issue.
Custom props need to represent each Driver Variable, but just get Value multiple with step value, each driver need to generate new props for all Variable*(step value) .
This driver need to set for many facial driver bones (at least 20 bones) transform x, y, z components. " a , b, c, d," represent " each facial controller (user slider) values." then it need to multiple with step value,, like [ r hand bend ] controller value multiple with pi/3 to rotate facialbone1 Euler x component correctly. To set Driver variable, as "a*0.759" add new custom props for each driver variable counts. To generate 10 facial pose controller, now each pose bone x, y, z component need to set 10 new custom props, just to get " value" = "value multiple with step value". So if there is "Sum Value ( multiple step value)" as driver type, I need not set those huge custom props for one Armature. and can avoid expression limit issue too.
This can be solved in something like this
blender.community/c/rightclickselect/5jhbbc/
VLN - Virtual Logic Nodes
* @ManBlender * how? eg. doing in input something like this:
=VLC(var)
but pure = a + b + 1 as operation is good solution here and with other standard inputs