Random Material Assignment


#1

I have a stone wall I am trying to texture. All of the stones are independent objects (not clones). I have five different textures I want to assign randomly to these hundreds of individual stones. This project will be rendered using the Vray plug-in with C4D14 (haven’t installed 15 yet). I have looked into the multi shader as only the diffuse channel must change and I am not having any luck. Does the multi shader only work with cloners? Anyone have a suggestion on how I might otherwise solve this problem without manually assigning textures?

Can existing objects be converted to clones? All of the objects are identical - only have been mirrored and positioned in different locations. I would really appreciate any advice…

Thanks!

Kevin


#2

Put your objects in a MoGraph Fracture Object and then put the multishader material on the Fracture.


#3

Hi Adam -

Thanks for the quick response. I have tried the fracture object with all of the stones as children. It doesn’t work for some reason. Could it be that this technique won’t work with Vray plugin?

Kevin


#4

Also, I have only five textures, but hundreds of stones. I just read in the manual, that the number of materials must equal the number of objects?


#5

Adam, I’ve got it figured out. The effector wasn’t applied. Thanks again for the help!


#6

Looking forward to the day when we can walk the materials library like we can the scene tree through script. But as you can see it works fine. When I get some materials of assignment service uk . In the meantime it would be great .
whether you think it has any value to your workflow or there any other questions to put on infront of the audiences


#7

Also you can use this script and plugin Shuffler :wink::point_right: