Houdini 22.0 Nodes Copernicus nodes

Channel Swap Copernicus node

Swaps channels within a multichannel layer, VDB, or attribute.

On this page

This node exchanges channels within a single multichannel layer, VDB, or attribute. 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. Use the dropdown menu to set whether the source is from the First Input or the Second Input.

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.

Value

A constant value determined by the Value for Red parameter.

Value for Red

The constant value to use as the source channel for the output red channel.

Source for Green

The source channel to use for the output green channel. Use the dropdown menu to set whether the source is from the First Input or the Second Input.

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.

Value

A constant value determined by the Value for Green parameter.

Value for Green

The constant value to use as the source channel for the output green channel.

Source for Blue

The source channel to use for the output blue channel. Use the dropdown menu to set whether the source is from the First Input or the Second Input.

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.

Value

A constant value determined by the Value for Blue parameter.

Value for Blue

The constant value to use as the source channel for the output blue channel.

Source for Alpha

The source channel to use for the output alpha channel. Use the dropdown menu to set whether the source is from the First Input or the Second Input.

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.

Value

A constant value determined by the Value for Alpha parameter.

Value for Alpha

The constant value to use as the source channel for the output alpha channel.

Inputs

channels

The layer, VDB, or attribute with channels you want to swap.

alternate

The alternate layer, VDB, or attribute with channels to swap from.

mask

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

Outputs

swap

The layer, VDB, or attribute after channels are swapped.

See also

Copernicus nodes