Nodes/RES4LYF/TextBox2
ComfyUI Node Runs on cloud

TextBox2

Two prompt boxes in one node, and that's the whole pitch

By ClownsharkBatwing·Created 2 years ago·Updated 17 days ago· 1,222
TextBox2
    • text1
    • text2
    text1
    text2

    Not everything in a sampler pack is rocket science. TextBox2 is a multiline text node with two boxes instead of one, and outputs to match. That's it. No hidden math, no solver, no precision tricks - it's a place to park text and pipe it somewhere.

    So why does it ship inside RES4LYF, a pack otherwise known for 69 samplers and the beta57 schedule? Because ClownsharkBatwing's workflows are dense, and the pack leans on a lot of string plumbing - regional prompts, temporal prompts that change per frame, style captions. When you're juggling two related prompts (say a positive and a style description, or two regional zones) it's tidier to keep them in one node than to scatter primitive text boxes across the canvas. TextBox2 is a convenience node, full stop.

    How it works

    There's no mechanism to explain. You type into the boxes; the node passes the strings straight through to its outputs. Think of it as a labeled clipboard that lives on the graph.

    The inputs and outputs that matter

    • text1 (STRING, multiline) - your first block of text.
    • text2 (STRING, multiline) - your second.

    Outputs are text1 and text2 (both STRING), each carrying the box of the same name straight to whatever text-consuming node you wire it into - usually a CLIP Text Encode, or one of RES4LYF's own text/conditioning nodes. The two channels are independent, so you can route text1 to a positive encoder and text2 somewhere else entirely.

    How to install it

    It comes with the pack. ComfyUI Manager: search RES4LYF, install, restart. Or manually:

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

    Portable builds use the embedded pip. Restart and hard-refresh with F5.

    Common issues

    Honestly, there's almost nothing to go wrong here. It's a text box. The one thing worth knowing: this is a plain passthrough, so it does no token counting, no truncation, no CLIP-aware trimming. If you need the prompt cut to a model's context window or shuffled, that's a different node in this same pack (TextShuffleAndTruncate). And if TextBox2 doesn't appear after install, it's the standard RES4LYF fix - make sure pip install -r requirements.txt ran without errors, restart, and refresh with F5 rather than a plain reload. Beyond that, this is about as low-risk as a node gets.

    CategoryRES4LYF/text

    Inputs (2)

    NameTypeDefaultDescription
    text1STRING
    text2STRING

    Outputs (2)

    NameTypeDescription
    text1STRING
    text2STRING