Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Vector switch

Switches between vector inputs using an index.


Inputs

  • index

    • The index of the vector value to output. This can only be 0, 1, 2, or 3.
  • vector 0

    • The vector value of index 0.
  • vector 1

    • The vector value of index 1.
  • vector 2

    • The vector value of index 2.
  • vector 3

    • The vector value of index 3.

Outputs

  • vector

    • The vector value of the selected index.
  • x

    • The x component of the selected vector.
  • y

    • The y component of the selected vector.
  • z

    • The z component of the selected vector.
  • vector list

    • The list of vector values of the selected index.
  • x list

    • The list of x components of the selected vector values.
  • y list

    • The list of y components of the selected vector values.
  • z list

    • The list of z components of the selected vector values.

Note(s)

  • Unlike the Switch node, all upstream nodes of input connections are computed.

  • Other names for this node include: VectorSwitch, Case, and If.

Example(s)