Nodes/quadmoon's ComfyUI nodes/Load Config - Smart
ComfyUI Node

Load Config - Smart

A Dropdown of Every Prompt Config You've Saved

By traugdor·Created 3 years ago·Updated 9 months ago· 16
Load Config - Smart
    • CONFIG_NAME
    config_names

    The smart prompt system in this pack stores your saved prompt and negative templates in a JSON file. This node is the browser for that file: it reads every saved config and hands you the one you pick, as a string, on a wire.

    Why you'd reach for it

    It's the glue that lets the save nodes and load nodes share names. The pack's Save Smart Prompt Config and Save Smart Negative Config both take a config_name string so you can choose which slot to write into; this node gives you a dropdown of all the slots that already exist, so you're picking from real saved configs instead of retyping names and hoping you got them right. It's the kind of node that doesn't do much alone but makes the whole smart system feel organized.

    How it works

    It reads the same qmSmartNodesConfig.json file the save nodes write to, and builds the dropdown from the config entries it finds. Each entry's label is stored as checkpointname - configname - that's the "other_data" field the savers write - so you see both which model and which named config each entry belongs to. Select one, and the node outputs that exact label string, ready to feed into a save or load node's config_name input.

    Inputs and outputs

    • config_names - the dropdown of saved configs (this input is populated dynamically; an empty dropdown means nothing's saved yet).

    Output: CONFIG_NAME, a string identifying the config you picked.

    Installing it

    Part of "quadmoon's ComfyUI nodes". ComfyUI Manager: search the pack title or Install via GIT URL with https://github.com/traugdor/ComfyUI-quadMoons-nodes.git. Manual:

    cd ComfyUI/custom_nodes
    git clone https://github.com/traugdor/ComfyUI-quadMoons-nodes.git
    

    Restart ComfyUI. No models or dependencies.

    Common issues

    Two things to know. First, the config file lives in ComfyUI's working directory - the folder you launched ComfyUI from - as qmSmartNodesConfig.json. If you move machines, or launch ComfyUI from a different folder, your saved configs seem to vanish even though the files exist; copy that JSON over with you. Second, the dropdown only refreshes when ComfyUI rebuilds the node's list - so a config you just saved may not appear in Load Config - Smart until you reload or restart. And an empty dropdown almost always means "nothing saved yet": save a prompt or negative config first, then come back here.

    CategoryQuadmoonNodes/SmartNodes

    Inputs (1)

    NameTypeDefaultDescription
    config_namesCOMBO0 options:

    Outputs (1)

    NameTypeDescription
    CONFIG_NAMESTRING