I'd like to create curve lines in my GN setup, specifying the end points of each line. In this case the start point is the same for all lines but the end points would be different for each. I made the below setup using the "for each element" node. It does create the lines but all have the same end points. What's wrong with my setup? The expected behaviour would be the one drawn in green on the screenshot.
This is a simplified version of my setup, the lines I'm trying to create are not the same long and not evenly distributed but have random endpoints fed in.



For Each Elementnode is returning a single Point, whose Index is always 0 ? Could you try and hard code 0 in the Index socket of theSample Indexnode ? $\endgroup$