Nodes/comfyui-lopi999-nodes/Parameters To String
ComfyUI Node

Parameters To String

Turn your sampler settings into a string your metadata actually wants

By LaVie024·Created about a year ago·Updated 8 months ago· 8
Parameters To String
    • STRING
    seed0
    steps20
    cfg8.0
    sampler
    scheduler
    denoise1.00
    prefix,
    include_seedtrue

    If you've ever loaded a PNG and wondered what settings made it, you know why metadata matters - and why it's a pain when your graph has two KSamplers and the "extra info" field only shows one. ParametersToString takes the seed, steps, CFG, sampler, scheduler, and denoise - the exact six knobs of a KSampler - and formats them into a single string ready for a prompt saver node's extra-info input. The author built it because one KSampler's built-in metadata wasn't cutting it once workflows grew past a single sampler.

    Why you'd reach for it

    The "Extra Noisy Latent" / metadata game in ComfyUI is: whatever string you put in the right field rides along in your saved PNG. ParametersToString is the honest way to build that string for each KSampler in your graph. Wire one up next to your main sampler, wire another next to your detailer pass, and both get their settings recorded. It's a small node with a very specific job, and it does that job exactly.

    How it works

    The node takes the six sampling parameters as inputs and assembles them into a formatted string - Steps: 20, CFG: 7, Sampler: euler, Scheduler: karras, Denoise: 1.00 - joined by a prefix you choose, with an optional Seed: prepended when include_seed is on. The prefix doubles as both delimiter and prefix (hence the name): set it to ", " and you get comma-separated; set it to a newline and you get a tidy block. Note the sampler list is pulled live from ComfyUI's own KSampler.SAMPLERS, so any sampler this pack adds - the euler_extsig family - shows up in the dropdown alongside the stock ones.

    The inputs that matter

    • seed (INT) - included only when include_seed is true.
    • steps, cfg, sampler, scheduler, denoise - the values you want recorded. The tooltips are lifted straight from ComfyUI's own descriptions.
    • prefix (STRING, default ", ") - the glue. Sets both the separator and what leads the string.
    • include_seed (BOOLEAN, default true) - whether the seed appears.
    • STRING - the formatted result, wired into your save/metadata node.

    Installing it

    Part of comfyui-lopi999-nodes:

    cd ComfyUI/custom_nodes
    git clone https://github.com/LaVie024/comfyui-lopi999-nodes
    

    Restart ComfyUI, or find "comfyui-lopi999-nodes" in ComfyUI Manager. No models, no dependencies.

    Common issues

    Two things to know. First, this node only formats - it doesn't record anything by itself. You still need to feed its string into a metadata/save node, which is exactly the workflow the README assumes (a prompt saver with an extra-info input). Second, the denoise is formatted to two decimals (0.85), so if you're comparing saved metadata against the actual widget values, they'll agree to two places but not beyond. And a workflow trap: if you're copying settings between the node and a KSampler, they're just widgets - nothing auto-syncs, so keep them in step manually.

    Categorylopi999/string

    Inputs (8)

    NameTypeDefaultDescription
    seedINT00–18446744073709550000The random seed used for creating the noise.
    stepsINT201–10000The number of steps used in the denoising process.
    cfgFLOAT8.00–100The Classifier-Free Guidance scale balances creativity and adherence to the prompt. Higher values result in images more closely matching the prompt however too high values will negatively impact quality.
    samplerCOMBOThe algorithm used when sampling, this can affect the quality, speed, and style of the generated output.
    schedulerCOMBOThe scheduler controls how noise is gradually removed to form the image.
    denoiseFLOAT1.000–1The amount of denoising applied, lower values will maintain the structure of the initial image allowing for image to image sampling.
    prefixSTRING, Both concatenates and prefixes all items in the string.
    include_seedBOOLEANtrue

    Outputs (1)

    NameTypeDescription
    STRINGSTRING