ComfyUI Node

Simple Multiple

The multiply node that shipped with the pack for no particular reason.

By SuLU-K·Created 9 months ago·Updated 7 months ago· 9
Simple Multiple
    • result_int
    input_int
    multiplier2.0

    Let's be honest about what this is: SimpleMultiple is a demo node. It multiplies one integer by a float and returns the truncated integer. That's the entire job. It lives under the category "Test Nodes/Math," which is this pack's way of telling you it's a leftover from when the author was learning the custom-node API - not a serious tool you should plan your workflow around.

    Why does it ship in a pack that otherwise does SAM3 bounding boxes and pose conversion? Because that's how the pack started. Building a ComfyUI custom node requires a minimal working example, and input_int * multiplier -> result_int is the canonical Hello World - the README of the whole pack doesn't even mention it. You can think of it as the scaffolding the rest of the nodes were built on, now sitting in the repo like a sample photo in a camera's demo roll.

    What it actually does

    Two inputs, one output:

    • input_int (INT, forced input - it insists on being wired from another node rather than typed) - the value to scale.
    • multiplier (FLOAT, default 2, step 0.1) - how much to scale it by.
    • result_int (INT) - int(input_int * multiplier).

    Note the truncation: 7 × 1.9 = 13.3 becomes 13, not 14. And because multiplier is a float, you can get a non-integer product that gets chopped. If you need rounding instead of truncation, this isn't your node. It also prints Calculation: X * Y = Z to the ComfyUI console every run - harmless, slightly noisy, and a nice little peek at how a custom node can log.

    Installing it

    It's part of the pack, so you get it with everything else:

    • ComfyUI Manager → search comfyui-easy-sam3-tools → Install → restart.
    • Or:
    cd ComfyUI/custom_nodes
    git clone https://github.com/SuLU-K/comfyui-easy-sam3-tools
    

    Then restart ComfyUI. No dependencies beyond what ComfyUI already has, no models, nothing heavy.

    The real take

    Here's the thing worth saying plainly: you almost certainly don't need this node. ComfyUI already has integer and float math primitives that do the same job, and the forceInput on input_int means you can't even type a constant directly - it wants a wire. Its real value is as a tiny, readable example of a working custom node: two inputs, one output, one function, a category. If you've ever considered writing your own node, SimpleMultiple is the 20-line template to learn from before you touch anything in this pack that actually matters for SAM3 work.

    Reach for the rest of the pack (the bbox editor, the mask range selector, the pose adapter). Reach for this one only if you're a few lines away from a multiply with a wire already in hand and can't be bothered to add a math node. It works, it just isn't the reason anyone installed the pack.

    CategoryTest Nodes/Math

    Inputs (2)

    NameTypeDefaultDescription
    input_intINT
    multiplierFLOAT2.0

    Outputs (1)

    NameTypeDescription
    result_intINT