VRGDG Image Switch (1-4)
Pick one, two, or four images with a comma string
- image1
- image2
- image3
- image4
- image
The pack's switches share a design philosophy: the "index" is a string, not a number, because you almost never want just one image. VRGDG Image Switch (1-4) is the smallest and most honest version of that idea - four images in, a comma-separated string like 1,2,4 in, and a batch of the selected images out. none or 0 means nothing comes out at all.
How it works. You connect up to four images (image1–image4) and type your selection into index. A single number picks one image. A comma list (1,2,4) outputs those images as a batch - which is exactly what video conditioning wants when a shot needs multiple reference frames. And 0 or none returns nothing, which is the pack's convention for "this scene has no reference" and lets downstream nodes skip gracefully instead of receiving a wrong image.
The inputs. index (the string selector) plus the four optional image ports. If you don't connect all four, no problem - just don't select an unconnected one.
The output. image - a single IMAGE, or a batch when you selected more than one index.
Why this one. Compared to the pack's fancier switches, this is the no-nonsense version: fixed four-slot layout, no refresh button, no map file, no blank-canvas special cases. If your workflow has a small, stable set of reference images - a handful of character frames, a few style refs - and you want to swap between them by index, this is the least-moving-parts way to do it. The author's own music video workflows lean on this pattern for feeding reference frames into the video model, one scene at a time.
Installing. Ships with the vrgamedev pack:
cd ComfyUI/custom_nodes
git clone https://github.com/vrgamegirl19/comfyui-vrgamedevgirl
or install via ComfyUI Manager and restart.
Troubleshooting. The gotchas are all about what counts as a selection. 0 returning nothing is a feature, not a bug - if you expect image 1 when you type 0, re-check the numbering (indices start at 1 here, matching the image port names). A stray space (1, 2) can break parsing on some versions, so keep the string clean. And all isn't part of this node's vocabulary the way it is on the bigger switches - with four images, just type 1,2,3,4. If you need more than four images, or the all/blank-canvas conveniences, step up to the Multi Dynamic variants in the same pack.
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| index | STRING | 1 | — |
| image1opt | IMAGE | — | |
| image2opt | IMAGE | — | |
| image3opt | IMAGE | — | |
| image4opt | IMAGE | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |