ComfyUI Node

String [LP]

A single-line text box, for when a full Text node is overkill

By LevelPixel·Created 2 years ago·Updated 5 months ago· 31
String [LP]
    • STRING
    STRING

    About as simple as a node gets, and that's the whole point: a single-line text field you type into, that outputs exactly what you typed as a string. Anywhere in a workflow that wants a short piece of text as input - a filename, a short tag, a value you're about to convert to a number, a key for one of this pack's JSON nodes - this is the node you drop in to type it.

    What it does

    There's no processing here at all. What you type is what comes out, unchanged, as a STRING. The pack's README describes it as functioning "similar to String from other node packages," and that's an accurate way to think about it - this isn't trying to reinvent a basic text-entry primitive, it's the pack's own version of a widget nearly every custom node collection ships in some form.

    Worth knowing: the README also documents a separate node in this pack, plainly called "Text," for multiline input (comparable to a Prompt box elsewhere) - that one isn't covered in this batch of articles, but if you need multiple lines rather than one, that's the node to look for instead of trying to force line breaks into this one.

    Inputs and outputs that matter

    • STRING (the widget itself, defaults to empty, single-line) - type whatever you need directly on the node.

    Output: STRING - wire it anywhere downstream that expects text: a prompt encoder, this pack's StringToInt or StringToNumber conversion nodes, a filename field, a key on ModifyJSONObject-LP.

    Installing it

    Through ComfyUI Manager, search "ComfyUI Level Pixel" or "ComfyUI-LevelPixel." Or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/LevelPixel/ComfyUI-LevelPixel.git
    

    Restart ComfyUI. Nothing to download - it's a plain widget node.

    Where people get burned

    Honestly, there's not much that goes wrong with a node this minimal. The one thing worth flagging for a beginner: it's genuinely single-line. If you paste in something with line breaks or try to use it for a full prompt with multiple sentences you want formatted across lines, you may not get the field to behave the way a multiline box would - reach for the pack's Text node (or ComfyUI's own multiline string primitive) instead once you need more than one line. This node is for the short stuff: a tag, a key, a filename fragment, a single value - not a prompt you're writing paragraphs into.

    CategoryLevelPixel/IO

    Inputs (1)

    NameTypeDefaultDescription
    STRINGSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING