Houdini 20.5 Nodes APEX nodes

Clamp<T>

Clamps a value between min and max.

On this page
Since 20.0

Returns val clamped between min and max.

Inputs

val: Float, Int

The value to clamp.

min: Float, Int

The minimal value. If val is below this value, min is returned.

max: Float, Int

The maximal value. If val is above this value, max is returned.

Outputs

result: Float, Int

The clamped val between min and max. If val is below min, min is returned. If val is above max, max is returned. If val is between min and max, val is returned.

APEX nodes