Aller au contenu

Swizzler Node

By Kriss Norde

Swizzler combines one or more image layers and/or channels into one or more custom layers.

Overview

Like Channel Booleans, Swizzler takes channels from a source and assigns them to a destination channel. The big difference: it uses layers, either targeting layers as a source or creating new layers. It can create new layers, push source layers or channels to a layer, or remove channels from a source.

Where to find this node

  • Effects Library: Tools > Layer > Swizzler
  • Quick add: right-click in the Node Editor → Add Tool > Layer > Swizzler

Inputs

  • Input 1 (orange) - the image you want to combine into a new layer.
  • Input X (white) - additional inputs, connected from other nodes whose image you want to combine into a new layer.

Controls tab

Layer List
views and selects the custom layers. You can rename layers directly in this list. The controls below apply to the selected layer.
Add Layer
creates a new layer and adds it to the list.
Keep Main Input Layers
preserves the existing layers of the clip connected to Input 1 and passes them to the Swizzler output, so you can add more layers to an existing multilayer source.
Channels
channels added to the selected layer. All Channels transfers all channels into the layer. Color/Aux separates RGBA from the AUX channels, so you can take RGBA from one input and AUX from another. RGB/A and R/G/B/A give even more granular control, channel by channel.
Source
the input that supplies the layers or channels for the layer selected in the list.
Source Layer
with a multilayer file on an input, picks a specific layer among those of the source input.
Source Channels
in Color/Aux mode, the channels of the chosen layer to use for the Aux channel. If the layer has no Aux channels and was rendered with RGB only, select the color channels (for example RG for UV Texture or RGB for XYZ Normal).

Examples

  • Assigning Aux channels: each pre-rendered RGB pass is connected to a new Swizzler input. Add a layer to the list (on its own, it becomes the default layer), then assign the right source to each Aux channel. The channels can then be previewed in the viewer.
  • Creating a multilayer clip: each RGB pass is connected to a new input. Add one layer per pass with a custom name, then choose the source input for each layer. For example, the UV pass connected to Input 4 is pushed to the "UV-Texture" layer by choosing Input 4 for that layer.

Use cases

  • Build a layer that takes RGBA from one input and the AUX channels from another.
  • Add layers to an existing multilayer source with Keep Main Input Layers.