Randomized rectangles within a square

Hi, I am currently working on a project where I would like to replicate the pattern shown in the image. I have tried using substrate to divide a square into multiple rectangles, which sort of works, however the devisions are too square, and I would like to have vertical strips. I also used the random quad panel component from Lunchbox, but these are only random in height, not in width. Could someone please help me out figuring out to create such a pattern? Much appreciated!

I see very regular division in horizontal stripes:

followed by a regular vertical division in bricks with equal lengths:

and as last step you have a final level of subdivisions where some bricks gets split using a main grid that dives it in two horizontally and in 3 vertically, where parts can get merged together:


[for the ones in grey, we see only a portion of division, so can’t really say which type they are]

I would also note that in each row of bricks, neighbors of a split brick never get split

[edit] neighboring rows of bricks appear to be always translated by +/- 1/6 or 1/3 of total brick length

I try like this.
random.gh (13.0 KB)

1 Like

Amazing the effort you put into solving this given that a starting file was not provided. In the real thing, vertical joints, like with brickwork, cannot lie above each other but must be staggered.

Another attempt trying to limit the random function.
random b.gh (19.6 KB)

2 Likes

First of all, sorry for not providing a script. The suggestions made already helped me out quite a bit. Still I would like to further improve the design. Ideally, I would like to make it even more randomized, without the horizontal order the pattern above has. I managed to create a script that does this using the substrate component, however I would like to have mainly slender horizontal slits, and no squares. Basically horizontal slits oriented in the same direction, differing in size. Any help with this would be greatly appreciated. My script might be a bit messy, sorry.
PanelSubstrate.gh (26.5 KB)