ComfyUI Node

Simple Text2

It passes your text through

By oztrkoguz·Created 2 years ago·Updated about a year ago· 33
Simple Text2
    • STRING
    input_text

    Write2 is a text-in, text-out node, and that's the entire job description. Type a multiline string into input_text, and it comes out the other side unchanged as a STRING. There is no processing, no formatting, no hidden magic - the source is literally return (input_text,). In a pack of LLM loaders and vision samplers, it's the node that just hands you a box to type in.

    Which sounds trivial until you look at how the rest of the pack uses it. Both StorySamplerSimple and Kosmos2SamplerSimple2 declare their prompt inputs as forceInput, which means you can't type into the widget on the node - a text source has to be wired in. Write2 is that source. In the Kosmos example workflow, a Write2 holding describe the image. is connected to the vision sampler's prompt input. It's the pack's own way of saying "here's where your instruction goes."

    Inputs and outputs

    • input_text (STRING, multiline) - the only input. Multiline means you can paste a paragraph, not just a single line.
    • STRING - the only output, a pass-through of exactly what you typed.

    That's it. Two sockets, one job.

    Where people get confused

    Because it's named "Write2" (display name "Simple Text2") and it holds text, beginners often expect it to show text on the canvas. It doesn't. It only outputs a value. If you want to see your text, you need a viewer node like ShowText|pysssss - which is precisely why the example workflows run a ShowText on the story output while using Write2 purely as a source. Don't confuse "a place to type text" with "a place to display text."

    Also worth knowing: this is a deliberately tiny node inside a tiny pack. If you already have any text-source utility installed (most people do - the ecosystem is drowning in them, per the custom-node ecosystem notes), you don't strictly need Write2. But since it comes free with the pack and matches the pack's wiring conventions, it's the least-friction choice for these particular workflows.

    Installing it

    It ships inside oztrkoguz/ComfyUI_StoryCreator, so it inherits the pack install:

    cd ComfyUI/custom_nodes
    git clone https://github.com/oztrkoguz/ComfyUI_StoryCreator
    

    then restart ComfyUI - or search "ComfyUI StoryCreator" in ComfyUI Manager. Unlike the pack's heavier nodes, Write2 imports nothing extra (no transformers, no cv2), so it will register and run even if the LLM/vision side of the pack can't. It's effectively dependency-free, which makes it the one node in this pack that never gives you grief.

    Troubleshooting

    There's almost nothing to break. If Write2 works but StoryLoader or the Kosmos nodes don't, that's a transformers/opencv-python install issue in your ComfyUI venv, not a Write2 issue - the simple nodes load fine while the model-backed ones fail on import. Keep Write2 as your sanity check: if this node appears but the others don't, you know the pack installed and the heavy dependencies are the problem.

    CategoryStory Nodes/Write2

    Inputs (1)

    NameTypeDefaultDescription
    input_textSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING