Attractor Curve with Variable attraction strength along the curve

GH Code-Variable attraction (28.3 KB)

Hello. I have been working with attractor curves with rectangles and have reached a snag. In the normal attractor definition the attraction distance is same along the length of the curve. My desired output is to create a variable attraction (which is adjustable) along the length of the curve as shown in the image.

Any help would be appreciated. Thank you.

Here is one idea:

GH Code-Variable attraction (30.1 KB)

Thank you very much. This certainly helped me a lot.

1 Like