Repeat Randomized Panel

Hi all. Pretty new to Grasshopper and I’m looking for some help.

I am trying to create a facade design using two different panels. One part of my script is helping to create the pattern of the panel, while the other is shuffling the panel placement. What I am having trouble with is the script applying the pattern to only one panel and repeating this panel throughout the facade. Instead it randomizes each panel, making each of them a unique in design. Instead of having 2 panels repeat through out the facade, I have 60 custom panels…

See my script below…

Random Facade Pattern.gh (20.8 KB)

One possibility would be to generate two patterns for a random grid cell, doesn’t matter which one, that would than be “copied” to your chosen locations in the grid. You could do this by getting the polygon centers of each grid cell. This would allow you to draw 2-point vectors from the center point of your template panel to each other cell center point. Those vectors could than be used to move/copy the panel to its definite locations in the grid.

Sounds like a possibility. How would this look like in the grasshopper script?

I’m not sure if this is exactly what you were looking for, but maybe it will give you some ideas on how to progress.

Random Facade Pattern2.gh (15.9 KB)

I hope this approach helps you! Most of the commands of your script are integrated and the basic principal for pattern generation is the same. The script works as described above and even works for more than two unique patterns.

Here’s what it looks like for two patterned panels and a blank one (without pattern):

If you don’t want any blank panels, simply set the panel reduction slider to 0.

Furthermore, don’t enable the surface generating component (boundary surface), when your playing with the parameters. It will probably crash the script. When all parameters are set and you have a pleasing design, you can turn it on and for instance bake your panels to Rhino or use the surfaces in an extended script. However, each time that you want to change the facade grid, the panels or the pattern, turn boundary surface off.

Random Facade Pattern V1.gh (30.3 KB)

Wow! Thank you so much for taking the time to help me with this. I think your logic makes sense now that I’m looking at the script. :smiley:

You’re welcome! :sunglasses:

I noticed that the parameters for the Pattern Control remain the same for both panels. Do you think it is possible to have separate controls. So say, one pattern could have more shapes, while the other has less…

Here you go! Works like a charm and produces quite nice results. :raised_hands:

All controls are now individualised per panel and even more panel patterns can be added by simply copying and pasting a portion of the script and connecting it to a Merge component. For more information on that matter, just take a look at my annotations in GH file.

Have a nice week-end! :smiley:

Random Facade Pattern V2.gh (42.1 KB)

2 Likes