Split / Combine

Break a per-element attribute into named scalar channels (hue/sat/lum, x/y/z) or build one from them, on an RGB, HSV, HSL, or LAB colour basis. Channel rewires a colour's RGBA in place; Convert changes a single value's space.

What it does

Split / Combine moves data between one compound attribute, such as a colour or a position, and a set of named scalar channels. Split reads an attribute, Cd, P, or any other colour or vector attribute on the incoming collection, and writes it out as separate named columns: hue/sat/lum for an HSL basis, x/y/z for Cartesian. Combine reads those named channel columns back off the collection and packs them into one compound attribute.

Basis decides both the channel names and whether a colour conversion happens. RGB, HSV, HSL and LAB convert colour on the way in or out; Cartesian reads or writes the raw x/y/z lanes with no conversion. Split and Combine share the same basis logic, so splitting and combining the same attribute with the same basis round-trips it.

When to use it

ParameterTypeDefault
collection_inOneOf([Collection])
directionString"Split"
sourceString"Cd"
targetString"Cd"
basisString"HSL"
strengthNumber1

Gotchas

Switching Basis changes the channel names Split writes and the names Combine reads. Downstream nodes referencing hue/sat/lum are not renamed automatically.

Split and Combine both need the source attribute or the channel columns to already exist on the collection. Where the attribute named in Source (Split) or the channel columns Combine expects are absent, the collection passes through unchanged rather than being guessed at or fabricated.

Colour bases (RGB/HSV/HSL/LAB) always rebuild a 4-channel colour on Combine with alpha set to 1. Split does not carry alpha out as a channel, so an alpha held before a Split/Combine round-trip does not come back through this node.

Worked example

  1. Add a Split / Combine node and wire a collection with a Cd colour attribute into Collection In.

  2. Leave Direction on Split, Source on Cd, and set Basis to HSL. The node now writes hue, sat and lum scalar columns onto every element.

  3. Adjust sat or lum downstream, for example with an Expression or Math node, to grade the colour.

  4. Add a second Split / Combine node, set Direction to Combine, Target to Cd, and Basis to HSL to pack the edited channels back into a colour.

See also

Convert · Attribute Reader · Vector Math · Colour fields