Basic Features Material Manager Material Nodes Individual Assets Generator
Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D

Hash

Preview Basic Inputs Outputs

Hash

The Hash Node can be used to generate any number of random values and random colors. In this example, a new calculation of the color for each polygon of a subdivided cube was started.

A Hash function is a function which maps data of arbitrary size to data of a fixed size. For example, the input might be any letter of the alphabet, and the hashed result would be a (seemingly random) whole number between 1 and 10. As there are more than 10 letters in the alphabet, obviously not each letter can be mapped to a unique number — this is then referred to as a "hash collision”.

In the case of the Hash node, this function is used to generate pseudorandom colors, floats and vectors based on both the Seed and Salt values.