Component use one list item at a time

Hi!

I am quite new to Grasshopper, and it feels like this issue should be easily resolved.

I am using the Shatter component to redefine a curve’s starting point to be a random point along the curve.This works well for one instance, but as soon as I have two or more curves there are problems.

I want each input curve to be shattered once, using an element from a list, then the next curve to shattered once using the next item on the list. Now both curves are shattered twice each by the two random values.

How can I make sure only one list item is taken in as shatter’s “parameter” for each operation? It is crucial that the parameter is different each time.

1 Like

Post your .gh file if you want help.

Solution 1: do not flatten the List Length
Solution 2: flatten the curve container.

1 Like

I would use the Seam component to do that:

1 Like

Thank you! :smiley: The seam component was much better for this, I don’t know why I did not find it.

Thank you! :smiley: This worked just as wanted!