Randomize painting patterns


I am working on a job where the facade in randomized louvres of two different sizes. i had managed to do this the hard way by creating all the blades and then randomly changing a few. Now the client has said we want 3 different colours and to randomize the colours along the blades with 2 colours being more dominant and the third being only on a few.

My goal is to be able to choose 3 colours and paint each blade with a random colour across the whole facade without having to actually select every blade and paint it one by one.

Has anyone created a script to do something similar before? As i am very new to Dynamo i will need as much help as i can to save time.

I have attached an image of the facade and the clients expectations.

Thanks for your help!

1 Like