Hi,
I just can’t figure out, how to adjust this snippet of code to transform a grid by a attractor (point/curve etc…) by not just by distance (that gives a radially (circle-like) outward scaling), but that the scaling is uniform at the contour of the grid
I want to create a tileable system of multiple (rectangular) grids, each grid which different attractor deformations, that users can be reshuffles in both X-Y positions, but would still create a cohesive overall continuity. So when grids are adjacent, next to each other, the scaling factor of the objects near the contour should be the same, so there is no visible transition
So as simple example, on the left simple point attractor that scale circles on a grid. In the middle diagram that is scale by distance in circular range. It should be more like the 2 diagrams on the right, with #3 with point attractir and #4 with curve attractor, where the most outward objects all have the same scaling factor
Seem like a simple remapping of values … but argh… must be a case of not enough coffee this morning for a functional brain. I want to have it somewhat flexible, to work with multiple types of attractor geometries and invariant of the contour shape.
Any pointers to get me going in the right direction?
(edit: rewrite to make it clearer)
attractor.gh (25.8 KB)