Hi All,
I’m Looking for a way to cleanup this script I made.
Basically its mimicking the 'Calculated Parameter" Function in schedules so I can use the end result parameter as a filter rule for graphic overrides.
The Clean up involves math functions for strings. Is there a more efficient way of adding up values from multiple parameter strings but maintaining the list format?
Script works so no rush on the help.
Thanks.
The first step is to look into list manipulation. Rather than getting each parameter individually (with duplicate nodes), you can just provide a list of parameter names to return values for. As long as you use the right list levels, you’ll get everything back in the same structure. You can then sum all those values up with Math.Sum
and then divide by 7. If you’re dividing by the number of parameters, you can also count the number of parameters per list rather than manually specifying.
Mabe this
get you started.
Code Block
s can be very powerful and can you save tons of nodes. 