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?
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.
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