ComfyUI Node

view_Data

Peek at whatever is on the wire and pass it along

By cardenluo·Created 2 years ago·Updated 5 days ago· 327
view_Data
  • any
  • any
data

view_Data is the "what the hell is on this wire" node. It accepts anything on its any input, prints a readable representation of it right on the node, and passes it out the any output so the graph keeps running. If you've ever connected a mystery wire and had no idea whether it's a number, a list, a dict, or a tensor, this is your look-it-up-without-killing-the-pipeline tool.

ComfyUI is a graph of typed sockets, but the types only tell you so much. A * (wildcard) wire in particular can carry almost anything, and when something downstream complains, you need to see the actual value. This node is the ComfyUI equivalent of a print() statement in the middle of a pipeline: cheap, non-destructive, and it answers "what is this?" before you spend an hour guessing.

How it works

Anything arriving on the any input gets rendered as text on the node face - for a string, you see the string; for a number, the number; for a list or dict, a compact representation. The same value flows out of the any output unchanged. There's also a data text field: an editable multiline area you can type into, which doubles as a scratchpad or a manual value you want to compare against the live input. Because the node is an output node, it renders on each run - so the text you see is always the value from the last execution.

The inputs and outputs that matter

  • any (wildcard) - plug in whatever you want to inspect.
  • data (STRING, multiline) - a manual text field for notes or a reference value.
  • any (output) - the input value, passed through.

No configuration to get wrong. Wire, run, read.

How to install it

It's part of the ComfyUI-Apt_Preset pack - all the view_* and type_* nodes install together. Via ComfyUI Manager (search "ComfyUI-Apt_Preset") or:

cd ComfyUI/custom_nodes
git clone https://github.com/cardenluo/ComfyUI-Apt_Preset

then run install.bat (Windows) or pip install -r requirements.txt, and restart ComfyUI. No model files needed.

Common issues & troubleshooting

Two habits worth having. First, remember it shows the last run's value - change an upstream node, and the display updates only after you queue another run. Second, for big structures (a long list, a large tensor) the rendering is a summary, not a dump; if you need element-by-element detail, pair it with view_GetLength or view_GetShape to at least confirm the size you're dealing with.

And the pack-level reminder one more time: this is a niche pack by a Bilibili-based author, README translated, node names terse. The recurring real-world failure is an IMPORT FAILED for the whole pack when dependencies are skipped - run install.bat, restart ComfyUI, and confirm the PreView nodes are in your list before you blame the data.

CategoryApt_Preset/PreView

Inputs (2)

NameTypeDefaultDescription
anyopt*
dataoptSTRING

Outputs (1)

NameTypeDescription
any*