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). You can also use this node 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

The method used to invert the values.

Complement

The pixel value x is set to 1 - x

Note

This method works for images in the 0 to 1 range. For images outside of this range, using Complement results in negative or out of range values. To resolve this, you can use a Clamp COP.

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.

mask

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

Outputs

invert

The inverted layer.

See also

Copernicus nodes