How to generate random color

Hi, Everyone

How to generate the Random color by given only the value of number of color ( ie. 5 shade, 3 shade).

Something like this?

5 Likes

Another examples with Python (Dynamo Color and Revit Color)

4 Likes

Refinery toolkit package has a good node for random contrasting colors, called ‘ContrastyColor’ if I am not mistaken.

2 Likes

hi everyone,
i’m working on putting some random colors to a curtain wall mullions, nevertheless i’m having this error message, I’m lost since I’m not sure whats the problem, can someone give me a hand please?, thanks

Select a mullion in your project; do you see a material parameter in the properties pallet? If not and you have to open the element type dialog then you need to work with the element types, not the element instances. Note that randomizing with element types is likely not ideal using this method.