Randomize wooden structure

Hi,

I developed a script to build a traditional prospector tent structure made of spruce trunks. I would like to randomize/control each element separately to create a building composed of various sections of different height width opacity etc. What I made now is arrays and mirrors of a first element, so the result is always homogenous. How would you introduce variation in dimensions so it looks more like a real structure built in the woods?

And is there a way to run the script several times with different parameters, then assemble the parts to create a building with several ‘‘rooms’’? For example if the first part is 10m wide and I want to attach a smaller part to it, the latter would have to have a trapezoid shape to match the end of the first part (using the last posts and column to attach). I made a first attempt by duplicating the script and choosing the endpoint of the first as the starting point of the second, but I don’t know how to arrange the junction so the second structure can change while staying attached to the first. I’m having trouble copy pasting the script with new links…

I hope it is clear… English is not my first language ^^

I could do it manually but I want to vizualize several options and play with the structures :slight_smile:

Thank you very much,

See attached files.

Florence

Structure.gh (50.0 KB)
Structure.3dm (68.7 KB)