A script for random material distribution

Hi, for a client i need to materialize several variations of a product he designed.
It contains of 10 pieces.
Every piece should get another material.
The problem is that there are 20-30 different materials he wants me to test on his product
random distributed on the 10 pieces of his product. So there will be a lot of versions.
Another request is that he wants me to control the amount (lets say percentage) which material appears how much (in percent).
For example gold should appear just 5% but concrete should appear for example 40%.
I hope it is somehow understandable.

I am completely new to blender and hope somebody can help me with that or give a little tutorial or best would be a script which can handle random material distribution on several objects. If someone could wright a script i would pay for it.
I googled already a lot but didn’t find any solution.
Something exists for texture or color variation but not for material randomness.
Thanks alot in advance!

Here is some probabilty 0 - 100 percent random material selection.

Hope that helps.

1 Like

Some other method here.

1 Like

@AlphaChannel Wow, great! Thank you so much!
I will try to rebuild that. Or could you perhaps provide these scenes with the nodes?
Thank you in advance and kind regards,
Nikolai

1 Like

probbaablee.zip (732.0 KB)

also see this thread where more is covered and better explained!

1 Like