How to Limit Attractors

Hi.

I am quite new to Grasshopper and I am creating a flat hexagonal paneling for the roof of my current project.
I have tried one script from the book AAD. The script worked. But how can I limit/control the effect of the attractors in a range?

The book talked bout limiting the effect of a point attractor with a circle but I don’t know how to do the same thing with a curve.
ROOF_.3dm (207.0 KB)
Roof_.gh (18.4 KB)

My roof is like this.1
My design is that the attractors only work in these two red bits and the openings get bigger.

This seems to be a simple question but I can’t find any solutions myself. (sigh…) And I hope my English is not confusing…

Something like this?


Roof_re.gh (20.3 KB)

1 Like

Thank you so much! I really appreciate your help ! (and I realize I’ve got a long long way to learn…)

May I ask one more question? I’ve notice that the sizes of both the upper and lower opening of a hexagon cell is the same. tcapture01 I wanted the lower ones (the green line ) to be smaller. How can I do that? Would it be the same way of the original script?


Roof_reV2.gh (21.1 KB)

2 Likes

Thank you so much again!!