Multicurve Attractor on a curved surface

Hi everyone, I am trying to use multicurve attractors on my surface, however I can’t seem to get it working with two. I have got it to work successfully with a single curve attractor, but I want to set two curves together for a larger attractor influence. I have images of both the single attractor which shows the effect I am after, and the dual attractor which isn’t working. Thank you!



Script:
FINAL 4.1,5.1,_.gh (292.3 KB)
FINAL 4.1,5.2,_.gh (283.8 KB)

you need to internalize your geometry

Hi @Quan_Li What do I do once it’s internalised?

do you want both curve to simultaneously affect all the content, depending on the distance between any given item and both curves?

or you want each item to be influenced just by its closest attractor curve, regardless of where the other one/ones are?

if you want this last behavior, then you could just replace Curve Closest Point with Pull Point (make sure the Pull Point default behavior “Closest” is the one being used)

something like this:

FINAL 4.1,5.2,_inno.gh (271.6 KB)

of course, if you want some real help with your specific case (expecially potential data-tree issues) you’ll need to internalize geometries, save the gh files again and reupload them

Hi Philip,

Please find the attached Grasshopper folder. To achieve the desired result use Curve Closest Point, make sure to graft the points and sort the distances accordingly.

Let me know if you need any further clarification.

Best regards,
khaled

FINAL 4.1,5.2, re_.gh (281.8 KB)


Ah I see, thanks Quan!

Thank you for your explanation @inno , it is very helpful!

Thanks for helping Khaled!