Parametric Pattern gone wrong?

Hi,

So I’m trying to make a script for my building facade, its supposed to have smaller squares in each panel, and these squares get bigger as it gets closer to the middle floorplate. I figured out the majority, but I noticed the center points (for the squares in the panel) must have a lot of duplicates of each other on the same area because in the final end product, it looks like it offset itself inside like dozens and dozens of times.

And whenever I try to use a component to get rid of any duplicates it’ll mess up the total values going in and things won’t line up.

Just wanna know if anyone would know how to fix this, or an easier way to do it.

heres some close ups of it

help 2.gh (526.0 KB)

like this?
image
help 2.gh (530.3 KB)

1 Like

ah thank you sm