Nodes/ComfyUI_mittimiLoadPresetLite/SaveParamToPresetLite
ComfyUI Node

SaveParamToPresetLite

Turn your current settings into a reusable preset

By mittimi·Created about a year ago·Updated 6 months ago· 0
SaveParamToPresetLite
  • param
    tomlnamenew_preset
    savetype

    SaveParamToPresetLite is the other half of the pack's loop. LoadSetParametersLite reads presets; this node writes them. Give it a parameters_data bundle and it dumps your current checkpoint, clip, VAE, prompts, size, steps, CFG, sampler, and scheduler into a .toml file in the pack's presets folder - the exact format the LoadSetParametersLite dropdown consumes.

    Inputs are three: param (a PDATA object, normally straight from the preset hub), tomlname (the preset's name, default "new_preset"), and savetype. The savetype dropdown is where it does something considerate: "new save" auto-renames to new_preset_1.toml if your chosen name already exists instead of clobbering it, while "overwrite save" writes over the file by that name. The node is an output node, so nothing comes out of it - it just runs and writes the file.

    Two quirks are worth knowing before you rely on it, both visible in the code. First, it doesn't save the seed. The preset TOML format has no Seed field, and the loader's front-end resets the seed to 1 whenever a preset is loaded, so your seed is never part of a preset. If exact reproducibility across preset loads matters to you, that's the limitation. Second, the preset list in LoadSetParametersLite is built once when ComfyUI starts, so a freshly saved preset won't show up in the dropdown until you restart ComfyUI. Save, restart, and it's there.

    Path details: presets live in the pack's own folder - ComfyUI/custom_nodes/ComfyUI_mittimiLoadPresetLite/presets/ - not in your user directory, and subfolders work because the dropdown scans recursively. It writes proper TOML with escaped backslashes in the checkpoint path, so Windows paths survive the round trip. It's a small, single-purpose node, but it's what turns "I found a good setup" into "I can reload it whenever" without hand-editing config files.

    Install via ComfyUI Manager (search "ComfyUI_mittimiLoadPresetLite") or git clone https://github.com/mittimi/ComfyUI_mittimiLoadPresetLite into custom_nodes, then restart. Only dependency is toml; no models to download.

    CategorymittimiTools

    Inputs (3)

    NameTypeDefaultDescription
    paramPDATA
    tomlnameSTRINGnew_preset
    savetypeCOMBO2 options: new save, overwrite save

    Outputs (0)

    No outputs