Clamp#

Clamp a number or array of numbers to a specified range. If an array of numbers is provided as the input and lower/upper are scalers Then each input numeric will be clamped to the range [lower, upper] If all inputs are arrays, clamping will be done element-wise. lower & upper are broadcast against input Error will be reported if lower > upper.

Installation#

To use this Node, you must enable omni.graph.nodes in the Extension Manager.

Inputs#

Name

Type

Description

Default

Input (input)

numerics

The input numerics to clamp

Lower (lower)

numerics

Lower bound of the clamp

Upper (upper)

numerics

Upper bound of the clamp

Outputs#

Name

Type

Description

Default

Output (result)

numerics

The resulting clamped output