Nodes/RunningHub/RH Any to String
ComfyUI Node

RH Any to String

The RH Any to String node is a passthrough wearing a converter's hat

By liangzheng1128·Created 3 months ago·Updated 3 months ago· 0
RH Any to String
    • STRING
    anything

    Let's be straight with you: the name is a lie, mostly. RH Any to String takes one input called anything, claims it converts any value to a string, and the schema types that input as STRING. Which means only strings can actually connect to it, and str() of a string is the string. So functionally this node is a passthrough wearing a converter's hat.

    That doesn't make it useless - ComfyUI is half plumbing, and "a node that does nothing on purpose" has a real job in the graph (the KB calls this the plumbing layer). You reach for it for the same reasons you reach for a label:

    • Debugging. It sits in the wire between two nodes and gives you a STRING socket to attach to anything that displays text. If your chain feeds you a value you can't see, this node makes it a visible string.
    • Normalizing widget output. Some nodes emit strings with trailing junk or empty defaults. str() strips nothing, but it does hand you a clean, predictable STRING you can fan out to five places instead of typing the same text five times.
    • As a placeholder in a template. If you're building a workflow for other people, this node is an obvious "paste your text here" socket they can fill in without hunting.

    Inputs and outputs

    One input, one output, no knobs:

    • anything (STRING) - the value you want "converted."
    • Output STRING - the same value, now officially a string, ready to wire into any string input.

    That's the whole node. There's no API key, no network call, no RunningHub account involved - this is one of the pack's local utilities, so it works even if you've never touched the cloud half of ComfyUI-RunningHub.

    Install

    It ships in the ComfyUI-RunningHub pack, so you get it the same way as the cloud nodes:

    cd ComfyUI/custom_nodes/
    git clone https://github.com/liangzheng1128/ComfyUI-RunningHub
    cd ComfyUI-RunningHub
    pip install -r requirements.txt
    

    or search "RunningHub" in ComfyUI Manager and install from there. Restart ComfyUI and it shows up under RunningHub/Utils. The requirements are light (requests, websocket-client, Pillow, numpy) - nothing model-sized to download.

    The honest take

    If you need a true any→string conversion for images, latents, or arbitrary types, this isn't it - its socket only accepts strings. But if what you actually want is a tidy, greppable string node to label your graph or bundle a repeated text value, it does that job with zero ceremony. Just don't expect it to convert your checkpoint loader into text.

    One genuine gotcha to file away: because the input is typed STRING, dragging a wire from a node that outputs something else will refuse to connect. If you find yourself fighting that, you wanted a real ANY-type converter from another pack - this one is for the string path.

    CategoryRunningHub/Utils

    Inputs (1)

    NameTypeDefaultDescription
    anythingSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING