Random materials over instances

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
Rik
Licensed Customer
Posts: 423
Joined: Wed Jul 28, 2010 8:57 pm

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...
User avatar
paride4331
Octane Guru
Posts: 3821
Joined: Fri Sep 18, 2015 7:19 am

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
Attachments
sc02.jpg
sc01.jpg
2 x Evga Titan X Hybrid / 3 x Evga RTX 2070 super Hybrid
Post Reply

Return to “Autodesk 3Ds Max”