Pattern Origami 2d

I’m trying to make a 2D origami pattern on a flat surface in Grasshopper. What I’d like is to control how much the cells open/close.

Best case, I could drive the scale with a gradient or with a curve I draw on the surface (so near the curve the cells open more, and further away they stay closed). If there’s also a way to add some jitter or randomness to the effect, that would be really cool.

I’ve already got a file but it’s not working the way I want. Can someone take a look or point me in the right direction on how to set this up?

Attach file and reference image :backhand_index_pointing_down::backhand_index_pointing_down:

TEST-C.gh (14.7 KB)

Thanks!

FYI,
Triangular.gh (10.4 KB)

Hey Jesse,

Thanks for your help!

I’m trying to get a radial scale effect – so in the center the pattern is larger, and towards the boundary it scales down. I already have a boundary curve, just not sure how to make the scaling respond to it.

It would also be great if there’s a way to add some jitter/randomness to the scaling so it doesn’t look too uniform.

And lastly, is there a way to make the pattern cut out so the surface has holes instead of filling everything?

for each shape (those will become hole at the end) you can measure the distance between their center point and your outer boundary curve (using something like Pull Point → Distance output)

you can Remap those values at your will and use those to scale each shape by its center point: with a [0,1] Remap, shapes will become smaller the closer they are to the boundary, while for a [1,0] Remap, shapes will become smaller the farther they are from the boundary

note that scaling by a perfect zero value will result in an error, so if you want to go very small use something like zero point zero something instead

You can give it a try with the curve attractor, and for your referenc.


Triangular_Crv.gh (11.8 KB)

You can achieve it with Random Reduce


Triangular_RandomReduce.gh (13.1 KB)

Thanks a lot, Jesse! That solved it perfectly :folded_hands: really appreciate the help.