Transformations across a matrix (project)

I’m trying to shift the center of this figure that I built, depending on its location in a square grid (as shown in the sketch grid of my concept).
I tried remapping the grid centers but that won’t actually distort the figure within the grid, it will just move the whole figure to the edges.
I also tried to manually add points to use the graph mapper, but it did not work either.
Is there any way to do this??
(First image is the figure baked out, second image is the transformation I’m attempting.)

I have also attached the gh file with the curves internalized.

22_02_2025 project 1- final.gh (34.4 KB)


I got a similar result, shifting the pattern within each grid cell but not “distorting” the shape as indicated in your hand drawn (?) image. That image is not very clear about what you expect?


project 1_2025Feb22aa.gh (28.7 KB) (cosmetic update)

(post deleted by author)


project 1_2025Feb22b.gh (56.0 KB)

Might have a wire or two crossed… :thinking:


project 1_2025Feb22c.gh (56.4 KB)

Hello here a little test
All inputs are clearly visible, I added a curve attractor, but shifting of center, scale and number of divisions must be given to each element of the branch.
As it is, it is simple to make it a cluster.



polygon block white.gh (25.3 KB)

1 Like


project 1_2025Feb22cc.gh (56.1 KB)

1 Like

Same version with cubes divided to get more divisions



polygon block white_2.gh (24.4 KB)

2 Likes

Here is a definition that may be a little more beginner friendly as it relies on the intuition of slicing 3D geometry. It is not as generalized (it can only do squares) or as fast (it uses heavy transformations) as Laurent’s definition, but it gets the job done.


Uses Metahopper plug-in: Checkerboard Square Grid Facet _ vr1.gh (64.0 KB)

Thank you so much for this definition, I think I understand what you did (main curve, scaling it and dividing both curves and then connecting these points) although I still find the data management part confusing, but thank you regardless.
I just have a question about these transformations within a matrix/grid. Is there a way for these centers automatically shift or do i manually adjust the graph mapper and then move each individually to the grid centers?

I think this makes a lot of sense, thank you!!
As a next step, would it make sense to use the graph mapper to be able to adjust the locations of the centers in order to get the effect I need?
I also had a question because I noticed you’re using a Sqgrid component but the figures are not actually in that grid. Is there a reason for that? (just trying to learn)

So far, it’s not really clear to me what kind of location adjustment you want to get. What you are looking for? Just your standard attractor adjustment? If you are going to use a rectangular or square grid, using an MD slider would make alot of sense.

I am not sure what you mean by that. Here is the grid in green and the figures inside that grid:

Perhaps you are confused because I immediately move the grid after creating it so that it is centered on the origin and doesn’t seem to grow strangely when playing with the sliders.

The transformation is similar to what Laurent’s second image shows, where the center is shifted and the dispatched rows are too. It is in a square grid, yes, and the center should shift to the same location in the grid (if that makes sense). (Top left of the grid means the figure’s center is also attracted to the top left.)

Just to be clear, that is the exact opposite to the image of your deleted post and in the sketch of your opening post. There, the location of the inner squares are pushed away from an attractor point in the center of the grid. In the deleted sketch, the inner squares also are scaled larger the farther away they are from the attractor point.