Oink
Nodes

Switch

Switch — pass one of its inputs through (which).

raw .md
NodeSwitch
Type idOC_N_switch
MenuMerge › Switch
Nuke classSwitch
Codeopencomp_core/nodes/utility/switch.py

Switch properties

Inputs and outputs

PortNameType
input 00image
input 11image
output 0Imageimage

Knobs

Panel tab Switch, in panel order.

KnobLabelTypeDefaultRange / valuesNuke knobDescription
whichwhichfloat00 to 1whichInput to pass through (floored, clamped)
nk_inputsinputsfloat21 to 16 (integer)inputs

Other knobs (Python, .nk and the assistant; not on the panel)

KnobLabelTypeDefaultRange / valuesNuke knobDescription
gl_colorViewer Controls Colorfloat ×30, 0, 00 to 1
postage_stamp_frameStatic Frameint1-2147483648 to 2147483647
lifetimeStartLifetime Startint0-2147483648 to 2147483647
lifetimeEndLifetime Endint100-2147483648 to 2147483647
useLifetimeUse Lifetimebooleanfalse
cachedCachedbooleanfalse
bookmarkBookmarkbooleanfalse
dope_sheetDope Sheetbooleanfalse
clone_groupClone Groupstring
link_sourceLink Sourcestring
link_overridesLink Overridesstring
split_viewsSplit Viewsstring

Nuke equivalent

Imports from and exports to Nuke's Switch.

Knobs with a different name here:

Nuke knobKnob here
inputsnk_inputs

Nuke knobs not in this list import as a knob of the same name, or are kept unchanged for export. See .nk import.

Examples

Open these from Help › Examples…, or from the ? menu in this node's Properties panel.

  • Merge operations: multiply, screen, plus (examples/merge/merge_operations.oink): Three Merges on the same A and B: multiply (darkens), screen (lightens), plus (adds light). The Switch picks which one the Viewer sees; change its "which" knob to compare.

On this page