Nodes/ComfyUI-Apt_Preset/view_Primitive
ComfyUI Node

view_Primitive

Fifteen constants on one node, the anti-node-sprawl play

By cardenluo·Created 2 years ago·Updated a day ago· 324
view_Primitive
    • widget_input_1
    • widget_input_2
    • widget_input_3
    • widget_input_4
    • widget_input_5
    • widget_input_6
    • widget_input_7
    • widget_input_8
    • widget_input_9
    • widget_input_10
    • widget_input_11
    • widget_input_12
    • widget_input_13
    • widget_input_14
    • widget_input_15

    view_Primitive is ComfyUI's Primitive node with more seats: one node that provides up to fifteen values, each flowing out its own output, widget_input_1 through widget_input_15. Where the stock Primitive forces you to scatter a handful of single-value nodes around, this one parks a whole batch of constants on a single face.

    The pack's stated reason for existing is dense workflows - too many nodes, connections that are hard to read, habits you have to re-learn per workflow. view_Primitive is that philosophy applied to constants. Video work is where it earns dinner: Wan and LTX schedules want a sequence of per-segment prompts or a set of CFG values, and instead of fifteen tiny Primitive nodes hogging the canvas, you get fifteen widget slots in one place. Same for a batch of seeds, or a stack of numbers you'll pass into the pack's controllers.

    How it works

    Like the core Primitive, the schema has no declared inputs - the node's face is its interface. You connect an output somewhere and a matching input widget appears on the node; type a value into that widget and it flows out the corresponding widget_input_N output. Each of the fifteen slots is independent: leave unused ones alone and they're simply absent from the graph's behavior. What's nice is that everything is visible on one face, so when you're comparing runs, the whole set of inputs is right there instead of hidden behind a convert-to-primitive round trip.

    The inputs and outputs that matter

    • widget_input_1widget_input_15 - fifteen * outputs. Connect an output to create its widget, set the value, and it feeds whatever you wired it into.

    Set one or set fifteen - the node scales to what you need, and the unused slots cost nothing.

    How to install it

    Part of the ComfyUI-Apt_Preset pack - install once, all the view_* and type_* nodes come with it. Via ComfyUI Manager (search "ComfyUI-Apt_Preset") or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/cardenluo/ComfyUI-Apt_Preset
    

    then run install.bat (Windows) or pip install -r requirements.txt, and restart ComfyUI. No model downloads.

    Common issues & troubleshooting

    Same dynamic-input gotcha as its sibling view_mulView: the widget field doesn't exist until you connect the output somewhere. If you're staring at a bare node wondering where the inputs are, that's expected - wire an output and they appear. And if a value seems not to take effect, remember ComfyUI caches upstream results; change the widget and queue a run before assuming it's stuck.

    Pack-level caveat: this is a niche pack by a Bilibili-based author with a translated README. The recurring community failure is IMPORT FAILED for the whole pack when dependencies are skipped - run install.bat, restart ComfyUI, and confirm the node loads before you start filling in fifteen slots.

    CategoryApt_Preset/PreView

    Inputs (0)

    No inputs

    Outputs (15)

    NameTypeDescription
    widget_input_1*
    widget_input_2*
    widget_input_3*
    widget_input_4*
    widget_input_5*
    widget_input_6*
    widget_input_7*
    widget_input_8*
    widget_input_9*
    widget_input_10*
    widget_input_11*
    widget_input_12*
    widget_input_13*
    widget_input_14*
    widget_input_15*