Hello, people of Grasshopper! First-time poster here. Long time user of Dynamo, fresh to Grasshopper.
I am playing around a bit with attractors, but I stumbled upon a dead end.
I have a box of points so to say and a curve and I would like to use the attractors to displace the points closer to the curve with some kind of an exponential expression to get some cool forms.
So I divided the curve into points and found which points from my box are closest to these points, the respectable vectors and distances. But the problem is that I get the distances out in one flat list and to remap the distances in a logical way I have to get the distances sorted pro point.
Does anyone have an idea how I can get around this? Or maybe use a whole different approach?