Oink
Switch01 Switch

Switch

Pass one of its inputs through (which).

raw .md
NodeSwitch
MenuMerge › Switch
Names in each format
.oink comp (JSON)"type": "OC_N_switch"
.nk scriptSwitch (how .nk import works)
Pythonnuke.createNode("Switch")
Assistant (MCP)create_node(type="Switch")
Tab searchswitch

Switch properties

Inputs and outputs

PortNameType
input 00image
input 11image
output 0Imageimage

Knobs

Panel tab Switch, in panel order.

KnobLabelTypeDefaultRange / values.nk 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 / values.nk 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

Knob names in .nk scripts

.nk knobKnob here
inputsnk_inputs

Other .nk knobs use the same name here. 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