Nodes/Klinter_nodes/Node Value to String Multi - klinter
ComfyUI Node

Node Value to String Multi - klinter

Your node values, formatted as labeled text

By klinter007·Created 3 years ago·Updated 9 months ago· 19
Node Value to String Multi - klinter
    • STRING
    inputcount2

    Node Value to String Multi - klinter turns the values flowing through your graph into human-readable, labeled text. You connect a handful of inputs, it formats each as Name:Value on its own line, and hands you one string. If that sounds like overkill for a utility, consider the actual use case: logging. You want to record the seed, the steps, the CFG, the model name, the prompt weight - a snapshot of what produced an image - and stick it in a text file next to the output. That's exactly the job this node does, and it does it without you hand-formatting a thing.

    The mechanism is worth a little scrutiny because it's clever about where names come from. Each input is dynamic (inputcount controls how many, default 2, up to 1000), and the node tries to recover each input's source node title or type from ComfyUI metadata - falling back to the Python class name if it can't. So instead of "value_1: 42", you get something like "KSampler:42" when the metadata cooperates. Values get formatted by type too: floats to four decimals, lists to their first element, everything else to string.

    Where the wizardry gets thin: those metadata tags depend on ComfyUI attaching _meta to values as they pass through, which works inconsistently across node types. Sometimes you'll get the friendly source name, sometimes a raw class name. It's a nice-to-have, not a guarantee - if exact labels matter, you're better off hardcoding names elsewhere.

    The setup is simple: set inputcount to the number of inputs you need and the node exposes value_1, value_2, etc. (via the pack's dynamic input JS). Connect anything - strings, ints, seeds. One STRING output, formatted with newlines. It's marked as an output node in the pack's schema, so it slots naturally at the end of a chain feeding a Save Text or a logging step.

    Install is the pack standard: search "Klinter_nodes" in ComfyUI Manager, or cd ComfyUI/custom_nodes && git clone https://github.com/klinter007/klinter_nodes then restart. No requirements.txt, no models, just the bundled comfy_api.

    It won't change how you generate, but if you've ever stared at an output PNG and wondered which settings made it, this is the node that answers the question automatically.

    Categorystring

    Inputs (1)

    NameTypeDefaultDescription
    inputcountINT21–1000

    Outputs (1)

    NameTypeDescription
    STRINGSTRING