Cinema 4D Cinema 4D Prime XPresso XPresso Nodes Calculate (Group)
Function available in CINEMA 4D Prime, Visualize, Broadcast, Studio & BodyPaint 3D

Clamp Operator

Basic Node Parameter

Clamp Operator

This node clamps the input to a range of values and outputs the result. Input values that are within the range are passed directly through to the output. Input values outside the range are clamped to the lower limit or upper limit of the range, whichever limit is nearer. For example, suppose you have defined a range from 5 to 12. Input values of 1, 8 and 15 will result in output values of 5, 8 and 12 respectively.

The Clamp node has many uses. For example, you might use the node to restrict an object’s movement to a particular volume of 3D space or period of time. Choose the node’s data type in the Attribute Manager..