Nodes/ComfyUI Ino Nodes/Ino List Get Item
ComfyUI Node

Ino List Get Item

Need one image out of a batch? This node is the index card

By nobandegani·Created about a year ago·Updated 2 months ago· 6
Ino List Get Item
  • items
  • item
  • success
  • length
index0

ComfyUI is great at handing you a whole batch of images on one wire. Pulling exactly one of them back out? That's the part it quietly refuses to make easy. InoListGetItem is the grab-by-index node from the ComfyUI-InoNodes pack: feed it any list - images, masks, strings, whatever - and it hands you the item at the position you ask for, plus a success flag and the list's length so you can react when things go sideways.

It shines right after a batch producer. Wire images from Ino Load Images From Folder into items, set index to 3, and you've got the fourth image of the folder as a single IMAGE you can pipe into an img2img node, a preview, or a face-restore pass. That kind of "process the whole batch, then do one extra thing to the last frame" workflow is exactly what the Ino pack's ImageHelper and ListHelper categories were built to chain together.

How it works

The node takes a single required input pair: items (any type, list) and index (an integer, default 0). Set index to a negative number and it counts from the end, Python-style - -1 is the last item, -2 the second-to-last. The success output goes False when the list is empty or the index is out of range, and length always reports how many items were actually in the list, so you can branch on it downstream with a boolean or switch node instead of guessing.

The outputs that matter:

  • item - the thing you asked for, whatever type was in the list (an IMAGE, a MASK, a string, a model).
  • success - False on empty/out-of-range, True otherwise.
  • length - the list size, handy for sanity checks.

Installing it

InoListGetItem ships with ComfyUI-InoNodes, a 125+-node pack by nobandegani covering file ops, S3, model loading, OpenAI calls, and workflow utilities. The whole pack installs at once:

cd ComfyUI/custom_nodes
git clone https://github.com/nobandegani/comfyui_ino_nodes
cd comfyui_ino_nodes
pip install -r requirements.txt

Or just search "ComfyUI Ino Nodes" in ComfyUI Manager and let it do the work. Either way, restart ComfyUI afterward. Note that the pack is built entirely on ComfyUI's newer V3 schema API, so if you're on a ComfyUI from before that shipped, you may hit import errors - update ComfyUI first.

Common issues

The one real gotcha: items has to actually be a list on the wire. If you wire it to a node that outputs a single value, the behavior gets weird, because the node is declared to accept list input and ComfyUI may wrap it. When you get an unexpected success: False but the list clearly has items, double-check the upstream node - list outputs in this pack are marked is_list, and image list outputs (like from Ino Load Images From Folder) are the intended companions here.

An out-of-range index returning success: False rather than crashing is deliberate, and it's the feature that makes this node chainable. It pairs nicely with Ino Switch On Int or a boolean gate: check success, and route to a fallback image instead of letting a broken value flow downstream.

CategoryInoListHelper

Inputs (2)

NameTypeDefaultDescription
items*
indexINT0-99999–99999

Outputs (3)

NameTypeDescription
item*
successBOOLEAN
lengthINT