6
$\begingroup$

How can I randomize a numerical value for a node? Is there any one node, or combination of nodes that can achieve this effect?

$\endgroup$
1
  • $\begingroup$ Yup, Sambler mentioned that below. Did you ever get that answer to work? $\endgroup$ Mar 27, 2014 at 6:51

1 Answer 1

6
$\begingroup$

Object Info Node's Random Output

I just discovered there is an Input node that can output a random value:
Input -> Object Info
However, it only works for Material Shader nodes.

Here is the Blender wiki description of this node:

Object Info
Information about the object instance. This can be useful to give some variation to a single material assigned to multiple instances, either manually controlled through the object index, based on the object location, or randomized for each instance. For example a Noise texture can give random colors or a Color ramp can give a range of colors to be randomly picked from.

Note that this node only works for material shading nodes; it does nothing for lamp and world shading nodes.

Location: Location of the object in world space.
Object: Index Object pass index, same as in the Object Index pass.transformed.
Material Index: Material pass index, same as in the Material Index pass.
Random: Random number unique to a single object instance.

$\endgroup$
7
  • $\begingroup$ That is only for shader nodes, right? $\endgroup$
    – Greg Zaal
    Mar 26, 2014 at 11:30
  • $\begingroup$ Yes, Greg, you're right. $\endgroup$ Mar 26, 2014 at 16:26
  • 2
    $\begingroup$ Duplicate of this. My answer of using a driven value node is also available within composite nodes. $\endgroup$
    – sambler
    Mar 27, 2014 at 3:09
  • $\begingroup$ Sambler, thanks for the tip. That is exactly what I was looking for, but I have no experience coding. Do you have any suggestions on beginning tutorials for implementing your suggestion? $\endgroup$ Mar 27, 2014 at 3:28
  • $\begingroup$ Sambler, can that technique be turned into a script to make a Random Value node? I know how to get a script for a node into Blender. That would be SO awesome! $\endgroup$ Mar 28, 2014 at 2:52

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