Clamp

This node constrains, or clamps, values in the selected channels to a specified range. By default, it clamps all channels to values between 0 and 1. This can be useful for ensuring that the input’s blackest blacks and whitest whites will be visible on an intended display device, or for restricting data fed to a subsequent node that does not support numbers outside this range.

This node has an equivalent in Nuke.

Inputs and Controls

Connection Type

Connection Name

Function

Input

src

The image sequence whose values you want to clamp.

mask

The optional image to use as a mask. By default, the effect of input src is limited to the non-black areas of the mask.

Control (UI)

Knob (Scripting)

Default Value

Function

Type name

TypeName

Clamp

The node type.

Enabled Enabled ticked If unchecked, this node will be omitted from the compiled image processing graph. Any incoming connections will be forwarded to the first output port, if any.
Label Label N/A An optional label to display on the node.
Parameters

Reset parameters to default value using the reset icon:

Clamp red ClampRed ticked Whether to clamp the red channel.
Clamp green ClampGreen ticked Whether to clamp the green channel.
Clamp blue ClampBlue ticked Whether to clamp the blue channel.
Clamp alpha ClampAlpha ticked Whether to clamp the alpha channel.
Minimum MinValue 0.000 The lower clamp value.
Maximum MaxValue 1.000 The upper clamp value.
Enable min. clamp to MinClampToEnabled unticked If enabled, values falling below Minimum will use MinClampToValue instead of being clamped directly.
Min. clamp to MinClampToValue 0.000 The colour values falling below the Minimum should be set to if MinClampToEnabled is enabled.
Enable max. clamp to MaxClampToEnabled unticked If enabled, values falling above Maximum will use MaxClampToValue instead of being clamped directly.
Max. clamp to MaxClampToValue 0.000 The colour values falling above the Maximum should be set to if MaxClampToEnabled is enabled.