Skip to main content

Switch Value

One of several values, chosen by Index: a camera from several View States wired into the deck, say. Keyframe Index to cut between cameras; with Blend, a decimal Index blends the two either side, so keyframing it flies from one camera to the next.

Syntax​

{ "id": "n1", "op": "switch-value", "name": "switch-value", "x": 0, "y": 0, "params": {} }

One out of it starts at "sourcePort": "value"; a parameter is set in params (leave out the ones at their default), driven by an edge to par:index, or read elsewhere as ch('switch-value/index').

Inputs​

This operator has no input ports.

Parameters​

ParameterKindDefaultChoices
valuesfield
indexfloat0
blendtogglefalse

Outputs​

PortType
valuevalue

Details​

  • Category: Output
  • Operator: switch-value