Multi-Type Demo (Primitive)
Multi-Type Demo (Primitive) is a demo node. Treat it like one.
- type_list
- output
Let's not overhype this one. Multi-Type Demo (Primitive) does exactly one thing: takes a single input that can be wired with a string, an integer, or a float, and forwards it. The author's tooltip is refreshingly honest - "Demo input that can accept multiple types. Output will just forward the value regardless of type." The "(Primitive)" in the display name is the giveaway that this is plumbing, and the "Demo" is the giveaway that it's a reference for how things work, not a tool you build a career on.
How it works
Under the hood it's a tidy illustration of the ComfyUI V3 API. The input is declared as a multi-type socket accepting io.String, io.Int, and io.Float - so the frontend lets you plug any of those three in without a type mismatch. The output is an ANY-typed list. In execute, the node unpacks the value into three slots with explicit assertions (slot 0 must be a string, slot 1 an int, slot 2 a float - any of them can be empty), then returns them as a three-element list.
So "forwards the value regardless of type" is almost true: it forwards whatever you connected, as one element of a list, next to two empty slots.
Why you probably don't need it
If you're building a real workflow, you want the value nodes from core ComfyUI (PrimitiveInt, PrimitiveString, and friends), or Any List (Primitive) from this same pack if you genuinely need to collect several values into a list. Multi-Type Demo's real value is as documentation: it's one of the cleanest minimal examples of a multi-type input and a list-typed output in the V3 backend-authoring style, so if you're writing custom nodes, this is a great file to open and crib from.
Install
Same pack, same steps as everything from silveroxides' ComfyUI_SamplingUtils:
cd ComfyUI/custom_nodes
git clone https://github.com/silveroxides/ComfyUI_SamplingUtils
or ComfyUI Manager → search ComfyUI_SamplingUtils, then restart. Real dependencies from requirements.txt: kornia, scipy, pilgram, opencv-python, unifiedefficientloader>=0.5.0 - heavier than the README's three-item list, but fine.
The one thing to keep in mind: the pack's README marks itself DEPRECATED in favor of the author's ComfyUI-UtilsCollection. This node is still fine to use today - just know that "Demo" nodes like this are the first candidates to get renamed or dropped when the code moves to a new home.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| type_list | STRING,INT,FLOAT | Demo input that can accept multiple types. Output will just forward the value regardless of type. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| output | * | — |