Houdini 20.5 Nodes Copernicus nodes

Invert Copernicus node

Inverts a layer.

On this page

This node inverts the values of the incoming layer. By default, this involves a complement operation that swaps black (0) and white (1), but as the definition of invert can vary, it can be used also to negate and compute the reciprocal.

Parameters

Mask

The amount of the new value to mix in with the original value. Higher values mix in more of the new value. Lower values mix in less of the new value. You can also set the RGBA channels to which you apply the effects of this node.

The default value is 1, which means this node uses only the new value. See Mask for more information.

Toggle RGB

Turns the Red, Green, and Blue channels on and off.

Red (default)

Applies this node’s effects to the Red channel.

Green (default)

Applies this node’s effects to the Green channel.

Blue (default)

Applies this node’s effects to the Blue channel.

Alpha (default)

Applies this node’s effects to the Alpha channel.

Invert By

How to invert the values. Complement works for images in the 0 to 1 range, but used outside of that range will result in negative values or out of range values, so a Clamp COP may be desired afterwards.

Complement

The pixel value x is set to 1 - x

Negate

The pixel value x is set to - x

Reciprocal

The pixel value x is set to 1 / x

Inputs

source

The layer to invert, can be Mono, UV, RGB, or RGBA.

mask

An optional per-pixel mask amount that’s scaled by the Mask parameter.

Outputs

invert

The inverted layer.

See also

Copernicus nodes