ComfyUI-DynamicPipe
Pack and unpack any number of typed values through a dynamic pipe in ComfyUI.
Nodes (2)
ComfyUI Dynamic Pipe
A pair of ComfyUI custom nodes that packs any number of values of any type into a single dynamic pipe and unpacks them elsewhere in the workflow.
<img width="1324" height="645" alt="image" src="https://github.com/user-attachments/assets/0a07fa5e-98ab-460a-a17f-9345277a432c" />Nodes
to Dynamic Pipe: Packs IMAGE, MODEL, LATENT, STRING, and other values into one output.from Dynamic Pipe: Creates outputs with the same names, types, and order as the inputs onto Dynamic Pipe.
Usage
- Add
to Dynamic Pipeandfrom Dynamic Pipefrom theutils/pipecategory. - Connect a value to the
*input onto Dynamic Pipe. A new empty*input is added automatically after each connection. - Connect the
dynamic_pipepins on the two nodes. - Use the named outputs created automatically on
from Dynamic Pipe.
Each input adopts the name of its connected upstream output. Duplicate names receive a numeric suffix such as _2 or _3.
Subgraph support
Dynamic Pipe preserves the schema for each subgraph instance. When a value enters a subgraph, its input-slot name is retained in the pipe schema, so fields such as positive and negative remain distinct even when both receive CONDITIONING. The slot name and type are also retained when the parent-side connection is temporarily disconnected.
Disconnecting dynamic_pipe from from Dynamic Pipe preserves its last output layout and downstream connections. When it is connected to a different to Dynamic Pipe, downstream links are removed only from outputs whose name or type changed, preventing values from being routed incorrectly.
Installation
cd ComfyUI/custom_nodes
git clone https://github.com/palealloy2999-prog/ComfyUI-DynamicPipe.git
Restart ComfyUI and reload the browser. No additional dependencies are required.