Nodes/ComfyUI_EmAySee_CustomNodes/EmAySee Multiplier Node
ComfyUI Node

EmAySee Multiplier Node

Two integers, one slider, kept in ratio — the tiny utility that earns its place

By EmAySee·Created about a year ago·Updated 4 months ago· 2
EmAySee Multiplier Node
    • multiplied_output_1
    • multiplied_output_2
    multiplier_slider1.00
    integer_field_110
    integer_field_220

    EmAySee Multiplier Node is about as small as a node gets: two integer inputs, one float slider, two outputs. The outputs are the two integers multiplied by the slider value, cast back to integers. That's the entire spec, and honestly it's enough to be useful.

    The case it solves: you have two values that need to move together - say a width and a height, or a batch count and a steps count, or two strengths that should always stay in the same proportion. With this node, one slider scales both at once, so they stay in ratio no matter where you land. Do the same thing with two separate sliders and you'll drift out of sync every time you tweak one. It's the "keep my pair of numbers proportional while I search for the sweet spot" tool.

    It's a utility node in a pack full of utility nodes, and that's the genre's whole deal - no AI, no model, just a small piece of glue that saves you from building the same two-wire arithmetic by hand. The author's own description in the code is refreshingly honest about what it does: a slider and two integer inputs, multiplied.

    How it works

    Nothing hidden. output_1 = int(integer_field_1 * multiplier_slider), same for the second. The multiplication happens in float and the result is truncated back to int - so 10 × 1.05 gives 10, not 11, because int(10.5) truncates. If you need banker's-style rounding instead of truncation, this node isn't it; but for scaling things where the value "feels" right rather than "rounds" right, truncation is usually fine.

    The inputs that matter

    Three inputs, two you'll set most of the time:

    • multiplier_slider - FLOAT from 1.0 to 2.0, default 1.0. The master dial. Note the floor is 1.0, so this node can only scale up - it can't halve your values. If you need downward scaling, this isn't the node.
    • integer_field_1 - INT, default 10, range ±10000.
    • integer_field_2 - INT, default 20, range ±10000. Keep the ratio you care about between these two.

    Outputs multiplied_output_1 and multiplied_output_2 are the scaled INTs. Wire them anywhere two proportional integers are needed.

    Installing it

    Part of the EmAySee pack:

    # ComfyUI Manager: search "ComfyUI_EmAySee_CustomNodes" and install
    # or manually:
    cd ComfyUI/custom_nodes
    git clone https://github.com/EmAySee/ComfyUI_EmAySee_CustomNodes
    

    Restart ComfyUI. No requirements.txt - the file imports torch for good measure but doesn't need anything special.

    Common issues

    The two limitations are both by design and both worth repeating: the slider tops out at 2.0 and bottoms at 1.0, so you can only go up, and the integer cast truncates rather than rounds, so small multiplier steps can be invisible on small inputs. 10 × 1.05 and 10 × 1.14 both produce 10. If that surprises you, raise the base values or accept the granularity. It's a simple node with simple edges - you'll either never touch it or find a workflow where it's exactly the knob you needed.

    CategoryEmAySee_Utils

    Inputs (3)

    NameTypeDefaultDescription
    multiplier_sliderFLOAT1.001–2
    integer_field_1INT10-10000–10000
    integer_field_2INT20-10000–10000

    Outputs (2)

    NameTypeDescription
    multiplied_output_1INT
    multiplied_output_2INT