ComfyUI Node

Scene Prompt Text

The tiny text node that makes ScenePromptViewer's per-slot prompts usable

By yixuanzona·Created 4 months ago·Updated 2 months ago· 10
Scene Prompt Text
    • STRING
    text

    Scene Prompt Text is the most boring node in this pack, and that's the point. It's a multiline text box with exactly one output: the string you typed. No settings, no magic, no models. You're not going to write an article about it - you're going to wire it into Scene Prompt Viewer and forget it's there.

    So why does it exist? Because Scene Prompt Viewer's per-image override inputs - prompt_in_1 through prompt_in_8 - are forceInput sockets. That's ComfyUI-speak for "you can't type here, you must connect a string from somewhere." ComfyUI's own Primitive node technically does the job, but its single-line behavior is miserable for a 200-word prompt. This node gives you a proper multiline field, and it's right there in the same pack, so you don't have to go hunting.

    How it works

    Nothing to reverse-engineer. One input (text, multiline, empty by default), one STRING output, pure passthrough - it returns whatever you typed. It's the same shape as any primitive string source in the plumbing layer of ComfyUI; the only real feature is that the textarea is comfortable for long prompts.

    How to use it

    Drop a Scene Prompt Text on the canvas, type a prompt, and connect its output to one of the viewer's prompt_in_N sockets. One node per slot if you want different prompts per image; if you want the same override everywhere, a single output can fan out to several prompt_in_N inputs. When an override is connected, it wins over whatever you typed in the viewer's card - the card text is the fallback, not the other way around.

    You'll most likely use these alongside the viewer's slot_count to pull specific images out of a folder batch for individual treatment - say, slot 1 gets a face-fix prompt and slots 2–4 ride the generic batch. For that, each slot wants its own text source.

    Install and gotchas

    Comes free with the pack, no separate install. ComfyUI Manager → search ScenePromptViewer, or clone it:

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

    Restart and it lives under image → utils, right next to the viewer. The only gotcha worth naming: because prompt_in_N is force-input, if you don't connect anything to it, the override simply doesn't exist and the card prompt is used - which is fine, just don't expect a widget to appear where you thought you could type.

    Categoryimage/utils

    Inputs (1)

    NameTypeDefaultDescription
    textSTRING

    Outputs (1)

    NameTypeDescription
    STRINGSTRING