Routes data from one selected input to a shared output. The input count is configured during setup; the accepted input can be changed at runtime through the selection attribute.
Usage
Use this module to choose which of several data sources may forward data to a shared destination. Each numbered input checks the selection when it is called. Calls to other inputs are ignored; changing the selection does not replay previously received data.
Setup
- Set Inputs to the required positive whole number. The export contains five inputs and defaults to
5. - Press Create to rebuild the
Inputsfolder. Changing Inputs 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 each source to its numbered action, such as
Inputs.input1orInputs.input2, and connectoutputto the shared destination. - Set
selectionto an existing input number, starting at1. For example,selection(2, true)accepts data fromInputs.input2. Callingselection()reads the current value;doSet = falsealso reads without changing it. The exported attribute report is1.00, while the Lua fallback is0; explicitly configure the selection before sending data. - Send data to the numbered inputs. Only calls to the selected input are forwarded through
output.
Inputs must be a positive whole number. Invalid or missing values produce an error and leave the existing input structure unchanged. If the selection is unset or does not match an existing input number, no input forwards data and no error is logged.
Features
- Selects one data source for a shared destination.
- Allows the accepted input to be changed through an integer attribute at runtime.
- Generates numbered input actions from the configured input count during setup.
- Forwards variable-length argument lists and ignores calls from unselected inputs.
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 |
|---|---|---|---|
| output | Forwards the arguments to connected destination actions. | ... (unspecified) | - |
| selection | Reads or sets the selected input number. | val (int), doSet (bool) | result (int) |
| createInputs | Hidden setup action used by Create; rebuilds the Inputs folder using Inputs. |
- | - |
| Inputs | FOLDER | FOLDER | FOLDER |
| Inputs.input1 | Forwards arguments to output only when selection is 1. |
... (unspecified) | - |
| Inputs.input2 | Forwards arguments to output only when selection is 2. |
... (unspecified) | - |
| Inputs.input3 | Forwards arguments to output only when selection is 3. |
... (unspecified) | - |
| Inputs.input4 | Forwards arguments to output only when selection is 4. |
... (unspecified) | - |
| Inputs.input5 | Forwards arguments to output only when selection is 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 |
|---|---|---|---|---|
| Inputs | 5 | number | - | - |
| Create | Create | button | - | self.createInputs |
| Description | This module allows you to configure a selection between multiple input options and a single output. An unlimited number of inputs can be defined, which are displayed in the inputs folder. Within the selection action, you can dynamically choose which input is routed to the output. | 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 input counts before rebuilding, with an actionable error message.
- Forward output data without collecting downstream return values.
- Load configuration through
loadAllProperties()and add the Description string type.
Module Version 1.0 | 9 October 2026 | AV Stumpfl GmbH
