Nodes/ComfyUI-SKLoRA-Manager/SK Point Indexer
ComfyUI Node

SK Point Indexer

Numbered click-points, as an image and as JSON

By sinvks·Created 8 months ago·Updated 3 months ago· 13
SK Point Indexer
    • image
    • json_points
    ◄image▾►
    â—„points_data[]â–º

    The simplest of the pack's two "click on the image" nodes, and in some ways the more useful one. SK Point Indexer annotates an image with numbered red dots and hands you both the picture and the coordinate data - no mask, no doodle layer, no fuss. It's the stripped-down sibling of SK Interactive Editor, built for the cases where you don't need a painted region, you need positions.

    Point-based control is everywhere in the ecosystem - promptable segmenters take a click as "select this thing" - and the point data is what travels. What this node gives you is a clean way to produce and reference those points: click a few spots on a reference, and each gets a number you can talk about downstream.

    How it works. Also plain PIL under the hood. It loads your image, applies EXIF rotation (the same fix as its sibling), parses points_data - JSON, a list of {"x": ..., "y": ...} - and draws a red circle with a white-bordered number at each coordinate. The radius scales with the image so markers don't turn into pinheads on big frames. Output is the annotated image plus the same points re-serialized as a JSON string.

    Inputs. Just two: image (upload from your input folder) and points_data (string, default "[]"). Like the Interactive Editor, the coordinates are normally written by the pack's frontend when you click on the image - but because it's a plain JSON string, you can also generate points programmatically from another node if you have the coordinates.

    Outputs. image - the annotated picture with numbered markers. json_points - the same point data as a string, ready to wire into anything that consumes coordinates (a SAM-style point input, a regional-control node, whatever you're building).

    Installing. Same as the whole pack - ComfyUI Manager (search "SK LoRA Manager"), or:

    cd ComfyUI/custom_nodes
    git clone https://github.com/sinvks/ComfyUI-SKLora-Manager.git
    pip install -r requirements.txt
    

    Restart, done. No model downloads, no heavy dependencies beyond the pack's standard set.

    The one thing to know. The v1.0.3 changelog fixed a freezing bug in this node (and its sibling) when pasting images from the clipboard - so if clicking around ever hangs your ComfyUI, update the pack first. And if you're choosing between this and SK Interactive Editor: pick this one when you only need click coordinates, and the Interactive Editor when you also want a painted mask from the same image. Both can read the same json_points format, so you can even index points here and feed them over there.

    Category🪄 SK LoRA Manager/Tools

    Inputs (2)

    NameTypeDefaultDescription
    imageCOMBO1 options: example.png
    points_dataSTRING[]—

    Outputs (2)

    NameTypeDescription
    imageIMAGE—
    json_pointsSTRING—