Mux
This function block collects multiple input values and bundles them into a single list output. Use it when you want to group several signals or images together and pass them downstream as one packaged value.
π₯ Inputs
Input 1 β Generic input socket
Input 2 β Generic input socket
(Additional inputs can be added up to 20 using the control below)
π€ Outputs
Generic β A single output that contains a list with the values from all input sockets (order preserved)
πΉοΈ Controls
Input size β Choose how many input sockets the block provides (2β20). Changing this control will add or remove input sockets so you can match the number of items you want to bundle.
π― Features
Flexible input count: pick 2 to 20 inputs to suit your workflow.
Ordered bundling: inputs are collected in left-to-right order into a single list output.
Generic support: works with images, numbers, text, lists, or any generic data type.
π Usage Instructions
Set the desired number of inputs with the
Input sizecontrol.Connect the values you want to group into each
Input Xsocket.The block outputs a single
Genericlist containing all input values in order. Connect that output to downstream blocks that accept lists or generic data.
π Evaluation
When the scenario runs, the block reads each connected input socket and produces a single list on its output. Unconnected sockets will contribute whatever default or empty value your system uses for that socket type.
π‘ Tips and Tricks
To split the bundled list back into individual items, pair this block with
DemuxorGet Element.Use with
Batch ProcessingorBatch Concatenationwhen preparing grouped data for batch workflows.If you are grouping images, connect the output to
Collage Images,Image Concatenate, orMulti Image Writeto create combined visuals or save multiple images at once.To convert grouped data into log-friendly format, pipe the output into
Data to JSONorCSV Export.Filter or sanitize the list before downstream use with
Exclude NonesorReplace Noneto remove or replace empty entries.For quick debugging or preview, send individual list elements to
Show Image(for images) or to a logging block.
π οΈ Troubleshooting
If you accidentally reduce the
Input sizeand lose a connection, re-scan or reconnect the source to the new sockets.If downstream blocks do not accept the bundled output, check whether they expect a single item per input rather than a list; use
DemuxorGet Elementto adapt the data shape.If some list entries are empty, consider using
Exclude NonesorReplace Noneto clean the list before further processing.
Last updated
Was this helpful?