Houdini 20.5 Nodes Copernicus nodes

Switch by Type Copernicus node

Selects an output layer by the type of the inputs.

On this page

When building a HDA that works with many signatures, it is important that only the legal paths are marked for computation. Otherwise a type error will be generated.

This operation allows selecting an input based on the type of the input. This decision is done during type inference, so can affect the outgoing type, allowing for type-variadic networks to be built.

It can, however, be quite confusing.

Parameters

If No Matches

What to output if none of the rules match the type_ref.

Unwire

Output a unwired result.

Use Test Input

Output the test_ref.

Use First Choice

Output the first choice, which is the input after the test_ref.

Inputs

Each of the optional inputs corresponds with a rule. If that rule passes, the input will be used. The first rule that passes is used and further rules are not tested.

Choice #

Negates the rule - accepts where it would have rejected, and rejects where it would have accepted.

Rule #

The rule is true if the input matches this type.

Any

This wll match against all types.

Layer

Matches against any layer, Mono, UV, RGB, RGBA, or ID.

Mono/Color

Matches against Mono, UV, RGB, and RGBA layers.

ID

Matches against ID layers.

Mono

Matches against Mono layers.

UV

Matches against UV layers.

RGB

Matches against RGB layers.

RGBA

Matches against RGBA layers.

Geometry

Matches against Geometry.

Metadata

Matches against metadata.

Output Type

If this input is selected, this will be the type of the output.

First Choice

The output type will be the type of the first choice input.

ID

The output is an ID layer.

Mono

The output is a Mono layer.

UV

The output is a UV layer.

RGB

The output is an RGB layer.

RGBA

The output is an RGBA layer.

Geometry

The output is a Geometry.

Metadata

The output is metadata.

Inputs

type_ref

A layer which is used for testing the type rules.

choice1

A series of optional inputs that will be output if the corresponding rule is true.

Outputs

chosen

The selected layer.

See also

Copernicus nodes