Multiply
Multiply a Whole Chain of Numbers in One Node, Not a Tower of Them
- operands
- MATCHTYPE
UC_MathMultiply multiplies two or more numbers together, folding them left to right. The "two or more" is the whole point: most math nodes stop at two inputs, and this one keeps growing. Connect three, four, six numbers and they all multiply into one result. It's the node you reach for the first time you find yourself chaining three two-input multipliers across your canvas and feeling silly about it.
Why you'd reach for it
Anywhere a value is a product of several things. Resolution math is the classic: width × height × some scale factor, or a batch size × steps × per-step cost for a VRAM estimate. It's also the natural home for combining strengths in LoRA-heavy workflows - a base strength times a modifier times a per-item weight. Because multiplication is commutative, the left-to-right fold doesn't change the answer, which makes this the friendliest of the autogrow math nodes (its sibling UC_MathDivide is not so forgiving).
How it works
An autogrow operands input that expands from 2 up to 10 connections, a left-to-right * fold, and a MatchType output that mirrors the input types. Integer × integer stays an integer; the moment any operand is a float, the result is a float. Worth knowing before you feed a product into a strictly-INT socket and get a type complaint - ComfyUI cares, even if the arithmetic doesn't.
The input that matters
operands. Drag more wires onto the socket to add operands, up to ten. That's the entire interface.
Installing it
Ships in ComfyUI-UtilsCollection. ComfyUI Manager → search "ComfyUI-UtilsCollection" → Install → restart, or:
cd ComfyUI/custom_nodes
git clone https://github.com/silveroxides/ComfyUI-UtilsCollection
Restart. No model downloads; requirements are just opencv-python and typing-extensions.
What to watch for
The two habits worth keeping: mind the int/float boundary (a product that "should" be an int can silently become a float if one operand is), and remember this replaces the old ComfyUI-LogicMath multiply node - accept the replacement prompt when ComfyUI offers, then uninstall LogicMath so the pack doesn't register duplicates. Multiply won't win any "most exciting node" awards, but it's the quiet workhorse of parametric workflows, and having it autogrow instead of daisy-chaining is the kind of small thing you notice every single time you build a graph.
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| operands | COMFY_AUTOGROW_V3 | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| MATCHTYPE | COMFY_MATCHTYPE_V3 | — |