Random materials over instances

Forums: 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 viewforum.php?f=18

Random materials over instances

Postby Rik » Tue Dec 12, 2017 6:18 pm

Rik Tue Dec 12, 2017 6:18 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...
Rik
Licensed Customer
Licensed Customer
 
Posts: 419
Joined: Wed Jul 28, 2010 8:57 pm

Re: Random materials over instances

Postby paride4331 » Wed Dec 13, 2017 8:51 am

paride4331 Wed Dec 13, 2017 8:51 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
User avatar
paride4331
Octane Guru
Octane Guru
 
Posts: 3689
Joined: Fri Sep 18, 2015 7:19 am

Return to Autodesk 3Ds Max


Who is online

Users browsing this forum: No registered users and 16 guests

Fri Apr 19, 2024 10:32 am [ UTC ]