Nodes/Shima/πŸ§ͺ Data Preview Test
ComfyUI Node

πŸ§ͺ Data Preview Test

The hidden node that shows where your values actually came from

By KDB-USJPΒ·Created 6 months agoΒ·Updated 6 months agoΒ· 2
πŸ§ͺ Data Preview Test
  • shima.commonparams
  • data
  • used_values_text
β—„test_seed42β–Ί
β—„test_width512β–Ί
β—„test_height512β–Ί
β—„test_projectTestProjectβ–Ί
β—„test_modelsdxlβ–Ί
β—„use_commonparamsfalseβ–Ί
β—„allow_external_linkingfalseβ–Ί
β—„show_used_valuestrueβ–Ί
β—„line_art_invertfalseβ–Ί
β—„canny_high200β–Ί
β—„canny_low100β–Ί
β—„depth_modeldepth_anything_v2_vitlβ–Ί
β—„normal_modeldsineβ–Ί
β—„normal_strength1.0β–Ί
β—„palette_colors8β–Ί
β—„highlight_threshold0.80β–Ί
β—„shadow_threshold0.20β–Ί

Right off the bat, an honest warning: you won't find this node in the right-click menu. It lives in the Shima/Hidden category - a test and demonstration node the pack author built to prototype two frontend features: showing which values a node actually used, and highlighting critical widgets. If a workflow loads with this node in it, it's almost certainly a template or a pack example, not something you should build on. But understanding it teaches you a genuinely important concept in this pack: the use_commonparams switch and the "where did this number come from?" problem.

How it works

The node holds a set of hardcoded test values - test_seed (42), test_width (512), test_height (512), test_project ("TestProject"), test_model ("sdxl"). It also accepts a shima.commonparams bundle from Shima.Commons. The use_commonparams toggle decides the winner:

  • OFF - the hardcoded values are used.
  • ON (with a commonparams bundle connected) - the values from Shima.Commons win: its seed, width, height, project name, and model type.

Then it emits two outputs. data is a DICT with the resolved values plus a source field telling you which side won ("hardcoded" or "shima.commonparams"). used_values_text is a human-readable STRING summarizing the same thing - seed, width, height, project, model, and which source provided them. That's the "used values display" the node was built to demo: a box on the node showing, at a glance, what was actually in play for the last run.

The extra widgets - line_art_invert, canny_high/canny_low, depth_model, normal_strength, palette_colors, highlight_threshold, shadow_threshold - are stubs mimicking MultiSaver's settings, there to demonstrate widget highlighting rather than to do anything. Don't treat them as working controls; this is a test fixture.

Why it matters beyond the test

The pattern it demonstrates is everywhere in this pack: Shima nodes accept values from your local widgets or from a Commons bundle, and the use_commonparams switch (the green toggle in a node's topbar) decides which wins. The #1 "why did my settings get ignored" bug in Shima workflows is a node reading Commons values you didn't expect. DataPreviewTest is the pack showing you, in the clearest possible terms, what that handoff looks like and how to read which source is winning.

Installing it

It ships with the Shima pack - ComfyUI Manager β†’ search Shima, or:

cd ComfyUI/custom_nodes
git clone https://github.com/KDB-USJP/shima_wf.git Shima

Restart ComfyUI. It won't appear in menus; you'd only encounter it in a workflow that already contains it.

Common issues

  • "I can't find it in the menu." Correct - it's a hidden test node. If you want to play with it, you need a workflow that references it.
  • "The preview-control widgets do nothing." They're demonstration stubs for widget highlighting, not functioning preprocessors. That's by design.
  • "The values look wrong." Check the source field. If use_commonparams is on and a Commons bundle is connected, the hardcoded values are supposed to be ignored - that's the feature.

Don't build production workflows on a test node. Do steal its lesson: when a Shima node ignores what you typed, look for the Commons override - that's where your number actually lives.

CategoryShima/Hidden

Inputs (18)

NameTypeDefaultDescription
test_seedINT420–18446744073709550000Hardcoded seed value
test_widthINT51264–8192Hardcoded width
test_heightINT51264–8192Hardcoded height
test_projectSTRINGTestProjectHardcoded project name
test_modelCOMBOsdxlHardcoded model type
shima.commonparamsoptDICTConfiguration bundle from Shima.Commons
use_commonparamsoptBOOLEANfalse🟒 If TRUE, use values from Shima.Commons instead of hardcoded values
allow_external_linkingoptBOOLEANfalseπŸ”— Allow external nodes to link to this node's outputs
show_used_valuesoptBOOLEANtrueShow/hide the used values display box
line_art_invertoptBOOLEANfalseInvert line art (Black on White vs White on Black)
canny_highoptINT2000–255β€”
canny_lowoptINT1000–255β€”
depth_modeloptCOMBOdepth_anything_v2_vitl2 options: depth_anything_v2_vitl, depth_anything_v2_vitb
normal_modeloptCOMBOdsine2 options: dsine, bae
normal_strengthoptFLOAT1.00–10β€”
palette_colorsoptINT82–256β€”
highlight_thresholdoptFLOAT0.800–1β€”
shadow_thresholdoptFLOAT0.200–1β€”

Outputs (2)

NameTypeDescription
dataDICTβ€”
used_values_textSTRINGβ€”