Skip to content

Clamp

Description

Clamp Node The Clamp Node takes an integer value on the In port, if the value is less than or equal to the Min port/parameter the Min port/parameter value is output, if it is greater than or equal to the Max port/parameter the Max port/parameter value is output, otherwise the value is output unmodified.



Ports

In
An integer input port used to provide the input value for testing. This must be connected for the node to operate correctly.
Out
An integer output port, the result of the comparison detailed in the description is output on this port.
Min
An integer input port, using this allows you to specify the minimum value from elsewhere in the logic graph, such as via an Number node.
Max
An integer input port, using this allows you to specify the maximum value from elsewhere in the logic graph, such as via an Number node.

Parameters

Min
A constant integer value for the minimum, used when the Min port is not connected.
Max
A constant integer value for the maximum, used when the Max port is not connected.