ComfyUI Node

Show Any (Any to String)

Turn any node output into a string, then stamp it into your metadata

By xxmjskxx·Created about a year ago·Updated about a month ago· 25
Show Any (Any to String)
  • value
  • STRING
display

ComfyUI's text nodes only accept strings, but half the values in your graph are integers, floats, and booleans. Show Any (Any to String) is the adapter that fixes that: it accepts any type, converts it to a human-readable string, shows it on canvas, and outputs it as a STRING you can wire into anything that only wants text.

The name says exactly what it does - no hidden cleverness, no type guessing you have to fight. The author's stated purpose for it is right in the node description: convert ints, floats, and bools to strings and wire them into Create Extra MetaData. That's the killer use case: you've got a resolution, a seed, or a toggle value somewhere in your graph, and you want it stamped into the metadata of every saved image.

The inputs and output

  • value - the anything input. It's typed as *, so it accepts any socket type: ints, floats, bools, strings, even lists and dicts. Values are converted to strings; large or complex objects get summarized rather than dumped in full, and very long strings are truncated to 2000 chars so the widget stays readable.
  • display - an optional STRING that's auto-filled with the converted value for on-canvas viewing. You don't set this; it's the node's way of showing you what it produced.
  • Output: a STRING (list type). This is the string you wire downstream.

It's an output node, so it runs every time the graph runs, and the widget updates to show the latest conversion.

The workflow it's built for

The canonical pattern, straight from the pack's docs:

  1. Take some non-string value in your graph - say an INT from a resolution node or a FLOAT CFG value.
  2. Wire it into Show Any (Any to String).
  3. Wire its STRING output into Create Extra MetaData's value input.
  4. That value now lands in your saved image's metadata as a key-value pair.

This is the bridge between "the save node auto-captures what it knows" and "I want to record this one specific number the graph computed." Without a node like this, you'd be typing values by hand into Create Extra MetaData - which works until the value changes between runs, and then you've got stale metadata in a fresh image.

Where it fits alongside Show Text

The pack ships two display nodes, and it's worth knowing the difference. Show Text (UniMeta) takes a string and shows it; Show Any (Any to String) takes anything and converts it. If you're staring at a string, use Show Text. If you're holding a number or a boolean and need text, use this one. They're both tiny, both in the SaveImageWithMetaDataUniversal/util category, and together they make every value in your graph visible and stampable. For a metadata-focused pack, that's quietly the most useful plumbing it ships.

CategorySaveImageWithMetaDataUniversal/util

Inputs (2)

NameTypeDefaultDescription
value*Any input to display as text. Values are converted to strings; large/complex objects are summarized. Primarily intended to convert ints, floats, and bools and wire them into Create Extra MetaData. Truncates very long strings to 2000 chars.
displayoptSTRINGAuto-filled with the converted string value for on-canvas viewing.

Outputs (1)

NameTypeDescription
STRINGSTRING