How to implement curve attractor instead of points?

adaptive facade.gh (15.3 KB)
rectangle.3dm (197.7 KB)
Hello! So I am planning to do similar result, but how do I attach curve attractor instead of points? new here to grasshopper :slight_smile:

Divide the curve into points.

it worked, thank you!