凤希AI - 文本预览
A print() statement for your graph
- 任意输入
FxAiTextPreview ("凤希AI - 文本预览") is a debug sink: plug anything into it and it serializes whatever arrived and shows it to you. It's the pack's print() statement, and it exists because this toolkit passes a lot of things ComfyUI's UI won't show you on its own - LISTs of parsed scenes, merged file paths, dict payloads that would otherwise just be a vague gray wire.
When you'll actually use it
ComfyUI is pretty good at showing you strings and numbers inline. What it's terrible at is showing you what's inside a LIST or a dict - which is exactly what the storyboard and scene nodes emit. One run of FxAiScreenManager or FxaiStoryBoard and you'll want to know whether your JSON parsed into the rows you thought it did. This node is the window.
It also earns its keep at the end of a pipeline: hang it off a 视频文件路径 output and you'll see the actual file the merger or generator produced, without hunting through folders.
How it works
The input is a wildcard - 任意输入 accepts anything, because the node's only job is to make sense of whatever lands on it:
- Strings, ints, floats, and bools get stringified directly.
- Lists and dicts get pretty-printed with
json.dumps(indent=4, ensure_ascii=False)- so Chinese text in your scene data comes out readable, not\uescapes. - Anything else gets a best-effort
str().
There's also a cache_text STRING widget (default empty) - a scratch box if you want to leave a note on the graph. The node is an output node (OUTPUT_NODE = True) with no outputs, which is ComfyUI's way of saying "this is where a branch ends and the UI shows something."
The honest take
Do you need it? Barely. It's a convenience, not a requirement - if you're comfortable reading the console, ComfyUI's own logs will tell you most of what this does. But for the pack's LIST-heavy workflow it's the difference between guessing and knowing, and it costs you thirty seconds to drop in. When your storyboard parser silently produces an empty list (more on that in the storyboard articles), this node is how you catch it instead of staring at a blank render.
Install
It's part of fxai-toolkit, so:
cd ComfyUI/custom_nodes
git clone https://github.com/fxai666/fxai-toolkit
Restart ComfyUI (or install via ComfyUI Manager, searching "fxai-toolkit"). No dependencies beyond what the pack already pulls in - soundfile and psutil auto-install on first load, and this particular node needs neither. It's the most lightweight node in the whole pack, which is fitting for a debug tool.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| 任意输入 | * | — | |
| cache_text | STRING | — |
Outputs (0)
No outputs