Routes incoming data from one input to the selected output. The output count is configured during setup; the destination can be changed at runtime through the selection attribute.
Usage
Use this module to send a shared data source to one of several destinations. Only the selected output is called when data arrives at input. The module forwards the supplied arguments without interpreting their contents.
Setup
- Set Outputs to the required positive whole number. The export contains five outputs and defaults to
5. - Press Create to rebuild the
Outputsfolder. Changing Outputs alone does not rebuild it. Rebuilding triggers a Core Reload and should be performed during setup, because it interrupts active operation. Check the node connections after rebuilding. - Connect the source to
inputand connectOutputs.out1,Outputs.out2, and the other required output actions to their destinations. - Set
selectionto an existing output number, starting at1. For example,selection(2, true)selectsOutputs.out2. Callingselection()reads the current value;doSet = falsealso reads without changing it. The exported attribute report is1.00, while the Lua fallback is0; explicitly configure a valid selection before sending data. - Send data to
input. The selected output forwards the incoming arguments to its connected actions.
Outputs must be a positive whole number. Invalid or missing values produce an error and leave the existing output structure unchanged. input rounds a numeric selection down and verifies that the corresponding output action exists. An unset, non-finite, nonnumeric, or nonexistent selection produces an error and stops forwarding that call. Select an existing output before using the module.
Features
- Routes a single source to one selected destination.
- Allows the destination to be changed through an integer attribute at runtime.
- Generates numbered output actions from the configured output count during setup.
- Forwards variable-length argument lists to connected actions.
Actions
An empty exported parameter type is shown as unspecified. Forwarded node data is described in the Info column; it is not a declared Lua result.
| Action | Info | Input | Output |
|---|---|---|---|
| input | Forwards the arguments to the selected Outputs.outN action. |
... (unspecified) | - |
| selection | Reads or sets the selected output number. | val (int), doSet (bool) | result (int) |
| createOutputs | Hidden setup action used by Create; rebuilds the Outputs folder using Outputs. |
- | - |
| Outputs | FOLDER | FOLDER | FOLDER |
| Outputs.out1 | Forwards arguments to the actions connected to output 1. | ... (unspecified) | - |
| Outputs.out2 | Forwards arguments to the actions connected to output 2. | ... (unspecified) | - |
| Outputs.out3 | Forwards arguments to the actions connected to output 3. | ... (unspecified) | - |
| Outputs.out4 | Forwards arguments to the actions connected to output 4. | ... (unspecified) | - |
| Outputs.out5 | Forwards arguments to the actions connected to output 5. | ... (unspecified) | - |
The table lists the exported actions. Create regenerates the numbered actions for the configured count.
Properties
| Name | Content | Type Hint | Options Source | Options Action |
|---|---|---|---|---|
| Outputs | 5 | number | - | - |
| Create | Create | button | - | self.createOutputs |
| Description | This module allows you to configure a selection between input and output options. An unlimited number of outputs can be defined, which are displayed in the outputs folder. Within the selection action, you can dynamically choose which output receives the input data. | string | - | - |
| Author | AV Stumpfl GmbH | string | - | - |
| Logo | Embedded PIXERA logo; content field is empty. | image | - | - |
| Url | www.pixera.one | url | - | - |
| Version | 1.0 | string | - | - |
Changelog
1.0
- Reject invalid output counts before rebuilding, with an actionable error message.
- Reject unset or invalid selections and missing output actions without causing a Lua error.
- Forward output data without collecting downstream return values.
- Load configuration through
loadAllProperties(), add the Description string type, and remove the unused Auto Init property.
Module Version 1.0 | 9 October 2026 | AV Stumpfl GmbH
