Houdini 22.0 Nodes Copernicus nodes

Compare and Blend Copernicus node

Compares two pixel values on a layer, VDB, or attribute and outputs either a true or false input for that pixel.

On this page
Since 22.0

This node blends between two layers, VDBs, or attributes by comparing two layers, VDBs, or attributes on a per-pixel basis.

It can be used as a pixel switcher based on specific values.

Parameters

Signature

The layer type that the source accepts.

See Signatures for more information.

True If

The condition for which a pixel will be selected from either true or false inputs.

Equal to each other (==)

If the two pixels have the same value.

Not equal to each other (!=)

If the two pixels have different values.

A greater than B (>)

If the first input is strictly greater than the second.

A greater than or equal to B (>=)

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

B greater than A (<)

If the first input is strictly less than the second.

B greater than or equal to A (<=)

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

B Value

The value to compare with if the B input is not wired.

Bias

Adds bias towards true or false inputs.

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.

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

true

The layer, VDB, or attribute from which to output pixels from if at this pixel, A is compared to B and produces a true outcome.

false

The layer, VDB, or attribute from which to output pixels from if at this pixel, A is compared to B and produces a false outcome.

A

A layer, VDB, or attribute.

B

The layer, VDB, or attribute to compare with A.

tolerance

A mono layer, VDB, or attribute to provide a per-pixel tolerance.

Outputs

chosen

A mix of true or false inputs depending on the result of the comparison.

See also

Copernicus nodes