Clamp
The Clamp node is a Math node that restricts a number within a specified range. You can find it under the Math Nodes category. You can also search for the node using the top search bar in the Nodes panel or use the keyboard shortcut Shift + K.
Using the Clamp Node
The Clamp node takes three inputs:
Value – the number to be clamped.
Min – the lower bound of the range.
Max – the upper bound of the range.
It outputs the input value if it falls within the range. If the value is lower than Min, it returns Min. If the value is higher than Max, it returns Max.
Drag the Clamp node into the canvas.
Check the input panel – it requires a value, a min limit, and a max limit.
Check the output panel – it returns the clamped value.
Enable inline types and values to visualize the data flow.

Example Usage
Drag a Clamp node onto the canvas.
Drag three Constant nodes onto the canvas.
In the first Constant node, set the type to Number and enter a test value, e.g., 12.
In the second Constant node, set the type to Number and enter the Min value, e.g., 5.
In the third Constant node, set the type to Number and enter the Max value, e.g., 10.
Connect the outputs of the three Constant nodes to the corresponding inputs of the Clamp node.
The output panel of the Clamp node should display 10, since 12 exceeds the maximum limit of 10.

In the first Constant node change the value from 12 to 8.
The output panel of the Clamp node should display 8, since 8 falls in between the limits.

When to Use
The Clamp node is useful when working with dynamic values where you need to ensure they stay within a valid range.
Last updated