Houdini 22.0 Nodes Copernicus nodes

Invert Copernicus node

Inverts a layer, VDB, or attribute.

On this page

This node inverts the values of the incoming layer, VDB, or attribute. 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.

For example, if you wire a Constant COP with a Value of 1 into the source input, the Invert COP outputs a value of 0 by default.

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

Applies this node’s effects to the Red channel.

Green

Applies this node’s effects to the Green channel.

Blue

Applies this node’s effects to the Blue channel.

Alpha

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. This is useful for switching a value’s sign.

Reciprocal

The pixel value x is set to 1 / x.

Inputs

source

The layer, VDB, or attribute to invert.

mask

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

Outputs

invert

The inverted layer, VDB, or attribute.

See also

Copernicus nodes