Houdini 20.5 Nodes Copernicus nodes

Channel Swap Copernicus node

Swaps channels within a multichannel layer.

On this page

This node exchanges channels within a single multichannel layer. This node is useful when different formats store RGB or BGR and require a fast and impromptu re-adjustment. If you try to swap a channel for one that doesn’t exist, the standard channel extension rules apply to the missing channel.

When using channels for non-color information, such as when R represents roughness and G represents metalness, you can use this node to copy a channel into another channel or zero out a specific channel.

For more complex workflows, you can use Channel Split instead of this node to split the layer into multiple layers, and then either independently process the channels or recombine them with the Channel Join node. In comparison, the Channel Swap node has higher efficiency since it can create less intermediary buffers.

Parameters

Signature

The layer type that the input accepts.

See Signatures for more information.

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. A value of 1 means this node uses only the new value.

The default value is 1. See Mask for more information.

Source for Red

The source channel to use for the output red channel.

Red (x)

The source red, or first, channel. This is the default value.

Green (y)

The source green, or second, channel.

Blue (z)

The source blue, or third, channel.

Alpha (w)

The source alpha, or fourth, channel.

Zero

A constant value of zero. Applies an implicit source zero channel.

One

A constant value of one. Applies an implicit source one channel.

Source for Green

The source channel to use for the output green channel.

Red (x)

The source red, or first, channel.

Green (y)

The source green, or second, channel. This is the default value.

Blue (z)

The source blue, or third, channel.

Alpha (w)

The source alpha, or fourth, channel.

Zero

A constant value of zero. Applies an implicit source zero channel.

One

A constant value of one. Applies an implicit source one channel.

Source for Blue

The source channel to use for the output blue channel.

Red (x)

The source red, or first, channel.

Green (y)

The source green, or second, channel.

Blue (z)

The source blue, or third, channel. This is the default value.

Alpha (w)

The source alpha, or fourth, channel.

Zero

A constant value of zero. Applies an implicit source zero channel.

One

A constant value of one. Applies an implicit source one channel.

Source for Alpha

The source channel to use for the output alpha channel.

Red (x)

The source red, or first, channel.

Green (y)

The source green, or second, channel.

Blue (z)

The source blue, or third, channel.

Alpha (w)

The source alpha, or fourth, channel. This is the default value.

Zero

A constant value of zero. Applies an implicit source zero channel.

One

A constant value of one. Applies an implicit source one channel.

Inputs

channels

The layer with channels you want to swap.

mask

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

Outputs

swap

The layer after channels are swapped.

See also

Copernicus nodes