If have a bunch of (procedurally generated, converted to mesh) rocks. I have four image textures (both color and bump).

Is it possible automatically pick a random image texture from the set of four image textures in the node editor, such that each object would randomly get one of the four image textures assigned?


1 Answer 1


This Randomizer Node Setup should work for what you want to make. If you want you could also switch up the mix shaders for mix color nodes to only randomize the images but I would suggest randomizing the shaders because 1. you only have to do this setup once and 2. you can individually control for example the strength of the bump map and the mixing factor of glossy and diffuse and so on...

Just to explain whats going on here: I have that Random number from the Object Info Node and multiply it with 4 to have a Number between 0 and 4. Then I split that range in half by checking of it is greater or less than 2. Then repeating the same procedure splitting that ranges in half but checking greater 1 and greater 3 if that makes sense.

enter image description here

  • $\begingroup$ I think I understand your setup; thanks to the "Just to explain whats going on here" part. Thanks! $\endgroup$
    – Jacco
    Commented Nov 4, 2017 at 13:29
  • $\begingroup$ And how do you this for three shader options? $\endgroup$
    – jspr
    Commented Mar 2, 2021 at 7:39
  • $\begingroup$ @jspr you can use the same setup just multiply by 3 instead $\endgroup$
    – HenrikD
    Commented Mar 2, 2021 at 7:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .