Series of numbers with variable step size; running summation

Hi all - I’m trying to array an object along a path curve, where the spacing is determined by a custom list of values (in the attached example they’re derived from the amplitude of a different curve). I’ve remapped the values onto the path curve length to create a list of spacing increments (the total sum is equal to the length of the path curve). But to array the objects correctly, I think I need a running total, adding each increment one by one. I’m trying to do this with Series, but perhaps it’s not the right tool, or perhaps I’m not using it correctly

20241002_SCREENWALL.gh (39.4 KB)

Greatly appreciate any suggestions

The way you set up everything you can use the Partial Result output of the Mass Addition component.

20241002_SCREENWALL.gh (23.2 KB)

2 Likes

That’s it - thanks so much for the quick solution!

1 Like

This can be a bit simplified, no need to use construct domain if domain begin at 0. Also mass addition could be used just one time

20241002_SCREENWALL_LD.gh (9.2 KB)

2 Likes

Nice - thanks Laurent