Select Output with a variable number of outputs are not yet available (see this feature request). What can I do in the meantime?

Comments

For now, you can link

smokris's picture
Submitted by

For now, you can link multiple Select Output nodes together into a binary tree.

I've attached 2 examples: one that selects between up to 4 outputs, and one that selects between up to 8 outputs. Send an event through the orange node when you'd like to switch the output. When you send data+events through the violet node, they'll be routed to only a single output port. (The violet node is generic, so you can connect any kind of data to it.)

I've also attached an example of how you might use this — when the mouse moves, its X position chooses which of the 4 image filters/generators to use; only the currently-selected one is executed. (When Select Output and Select Latest nodes are available with a variable number of ports in Vuo 1.0.0, it'll cut the number of nodes in this example in half.)