Houdini 20.5 Nodes Copernicus nodes

Compare Copernicus node

Creates a mask by comparing two layers.

On this page

This node creates a mask by comparing two layers on a per-pixel basis. It can also compare against a constant value if the second layer isn’t provided.

Parameters

Signature

The layer type that the source accepts.

See Signatures for more information.

Comparison Value

The value to compare with if the second input is not wired. This is compared against each of the channels of the first layer.

Tolerance

Tolerance for the comparison. This tolerance will be applied two-sided for the equal comparisons, and one-sided for the strict inequality comparisions. Pixels within the tolerance will gain a soft mask value according to the fall off.

True If

The condition for which the output mask will be 1.

A equal to B(==)

If the two pixels have the same value.

A not equal to B (!=)

If the two pixels have different values.

A greater than B (>)

If the first input is strictly greater than the second.

A greater or equal to B (>=)

If the first input is greater than or equal to the second.

A less than B (<)

If the first input is strictly less than the second.

A less than or equal to B (<=)

If the first input is less than or equal to the second.

Components

With multi-channel layers, such as UV, RGB, RGBA, layers, it is possible only some of the channels pass the comparison operator.

True if All

The mask is 1 only if all of the channels pass the test.

True if Any

The mask is 1 if any of the channels pass the test.

Falloff

For values that do not pass the test, but are within the tolerance, this controls how they fall off.

None

No fall off is performed, a hard cutoff is done.

Linear

A linear fall off from 1 to 0.

Elendt

An S-shaped smooth fall off that is smooth at the start and end.

Inputs

A

The layer to compare.

B

The layer to compare with. Can be any layer type that is convertable to the A layer.

tolerance

A mono layer to provide a per-pixel tolerance.

Outputs

mask

A zero-to-one mono layer which is 1 where the comparison is valid and 0 where it is invalid.

See also

Copernicus nodes