Nodes/ComfyUI Layer Style/LayerUtility: TextBox
ComfyUI Node Runs on cloud

LayerUtility: TextBox

Text Box (Layer Style)

By chflame163·Created 3 years ago·Updated 4 days ago· 3,113
LayerUtility: TextBox
    • text
    text

    Text Box is about as simple as a node gets: it's a multiline text field that outputs a string. That's the whole thing. You type (or paste) text into it, and it hands that text off to whatever needs it - a prompt encoder, a filename builder, a text-to-image node. It exists so you have a clean, dedicated place to author a block of text and route it, rather than burying it inside another node's widget.

    Why bother, when CLIP Text Encode already has a text box built in? Because separating the text from the thing that consumes it is tidy and reusable. One Text Box can feed several nodes at once, you can swap what it connects to without retyping, and a multiline field is nicer for editing a long prompt than a cramped inline widget. It's the string primitive of the Layer Style pack.

    There's exactly one input and one output. The input is text, a multiline string - write anything, line breaks included. The output is text, a STRING carrying whatever you typed. Wire that output into a CLIP Text Encode's text slot, into String Condition to test it, into a Text Image node to render it, or into any node that takes a string. Nothing surprising, and that's the point.

    Where it earns its place: as a central prompt source in a workflow that reuses the same text in multiple spots, as a scratchpad you can quickly rewrite between runs, or as the input end of a text-processing chain. If you build modular graphs, having your prompts live in labeled Text Box nodes instead of scattered across encoders makes the whole thing easier to read six months later.

    Installation is via the ComfyUI Layer Style pack, which is where this node lives - you don't grab it standalone. Through ComfyUI Manager: search "ComfyUI Layer Style," install, restart. Manually: cd ComfyUI/custom_nodes && git clone https://github.com/chflame163/ComfyUI_LayerStyle, then pip install -r requirements.txt in the ComfyUI Python environment, restart. No model, no download - it's a text field.

    There's genuinely nothing in this node to troubleshoot; if text goes in, the same text comes out. The only reason it'd give you trouble is the pack-level one that hits every node here: Layer Style is large and dependency-heavy, and its recurring failure is the whole pack showing "import failed" in the Manager (usually a transformers version conflict), which yanks all of its nodes - Text Box included - out of your list simultaneously. So if you can't find this node, it's not missing on its own, the pack didn't import. Reinstall it, use the Manager's "Try Fix," and if that doesn't do it, reinstall the requirements into the environment ComfyUI actually runs on.

    Category😺dzNodes/LayerUtility/Data

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    textSTRING