Switch NodeThe Switch node enables you to switch among multiple inputs in the order you specify, by using expressions, such that each frame of the output may come from any of the inputs. The Switch node accepts from one to 10 inputs. Switch Parameter TabUse InputYou can specify the number of the input to use for the current frame (as specified in the Frame Controller panel) by keying a number in the range of 1-10 into the data entry field or by using the mouse to set the tuner to the desired input number. ![]() Most commonly, however, you will use an expression to specify the order of inputs. Using Expressions in the Switch ParameterFirst, you will need to check the Expressions box in the Switch node panel. Then you key in an appropriate expression. In the expression, 1 represents the first (top) input; 2 is the second input; 3 is the third input, etc. ![]() Assume that you wish to switch back and forth between two inputs frame by frame:
To do so, connect the two inputs to the Switch node and check the Expressions box in the node panel. Then key the following expression into the Expressions field: ($F - 1) % 2 + 1 For more information about using expressions, see appendix B, "Chalice Expression Language ." |