Page 1 of 1

Random materials over instances

Posted: Tue Dec 12, 2017 6:18 pm
by Rik
Having a duhh moment here but how do I do this?

I have a car and want to instance it as a proxy but have the instances look different by having different materials applied to the car paint element.

I can do it with the random colour colour map plugged into a gradient map plugged into diffuse but that only works for different colours.

I need to use different materials as some of the car paint materials are a mix of 2 materials and not just different colours and, very annoyingly, I can't just plug my car materials into the map slots of the gradient map...

Re: Random materials over instances

Posted: Wed Dec 13, 2017 8:51 am
by paride4331
Hi Rik,
you could, depending on the case:
using istance range map node in your multimaterial carpaint or using a script to assign different material in your scene.
Select your objects and type in Listener this code:
for obj in selection do obj.material = meditMaterials[random 1 4]
Regards
Paride