generative modeling for Rhino
How can i create a series like (a,(a+b),(a+b+c),(a+b+c+d)).
if i have a list of no. like a,b,c,d.
You can use nested for-loops to do this. For example, inserting the following code snippet in the C# script component will do the trick! If you need any help in understanding the code, let me know.
for (int i = 0; i < givenSet.Length; i++)
resultingSet[i] = 0;
for (int j = 0; j <= i; j++)
resultingSet[i] += givenSet[j];
The Mass addition Component has a partial results output which will achieve the results you want.
Hahaha... such a simple solution! Too bad I cannot "up-vote" your answer like on http://stackoverflow.com
Thank you all very much for suggesting me with different methods!!
But the one Danny Suggested was so much easier and it is working perfectly!!!
Thank you all once again.:)