How can I randomize a numerical value for a node? Is there any one node, or combination of nodes that can achieve this effect?
1 Answer
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.
-
-
-
2$\begingroup$ Duplicate of this. My answer of using a driven value node is also available within composite nodes. $\endgroup$– samblerMar 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