ComfyUI Node

Extra 4

Five catch-all nodes is plenty

By itom0717·Created 6 months ago·Updated 6 months ago· 0
Extra 4
    • text
    • id
    extra4
    extra4_custom

    Second-to-last of the pack's five unnamed slots, and the honest take is: if you're using Extra 1, 2 and 3 for three different things, Extra 4 is probably going to sit mostly unused - and that's fine. Five catch-all nodes is more than most people have recurring prompt fragments for. The useful mental model is that the pack hands you a filing system with capacity, and Extra 4 is the drawer you reach for when a new category shows up mid-project.

    When that happens, though, the node pays for itself. New recurring block - foreground detail, framing device, weather - drop a file in data/extra4/, restart, and it's a first-class dropdown like the named categories. The pack's core promise is consistency: the same block, spelled the same way, every single run, without a search through your paste history.

    How it works

    Lists .txt files in ComfyUI/custom_nodes/ComfyUI-Prompt-String-Selector/data/extra4/. Filename minus extension = dropdown label; leading number = id output; // and /* */ comments stripped; sorted by numeric prefix. Ships with 01_none.txt as a no-op option.

    Inputs and outputs

    • extra4 - dropdown.
    • extra4_custom - multiline override; custom_input uses this box's text, id becomes 0.

    Outputs: text (STRING, comma-terminated for chaining) and id (INT).

    Install

    ComfyUI Manager → search "Prompt String Selector", or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/itom0717/ComfyUI-Prompt-String-Selector.git
    

    Restart. No dependencies - pure Python standard library, nothing to pip install, no models.

    Gotchas

    The restart-to-refresh dropdown, same as all siblings. And one structural note about the whole Extra family: the data folders live inside the pack directory under custom_nodes, so they're part of the repo's install. That means a ComfyUI Manager "update" of the pack could, in principle, touch that folder. Back up your data/ directory if you've built a library you care about - it's your content, not the pack's, and it lives in a place that says otherwise.

    CategoryPrompt String Selector

    Inputs (2)

    NameTypeDefaultDescription
    extra4COMBO2 options: 01_none, custom_input
    extra4_customSTRING

    Outputs (2)

    NameTypeDescription
    textSTRING
    idINT