Nodes/ComfyUI-IdeogramHelper/Ideogram Studio Element Override
ComfyUI Node

Ideogram Studio Element Override

Patch one box's description from the graph

By Nynxz·Created 3 months ago·Updated 3 months ago· 44
Ideogram Studio Element Override
    • overrides
    id1
    desc
    text
    colors

    Ideogram Studio Override changes whole-image fields. Ideogram Studio Element Override changes one box - the element you drew on the canvas - by its number. If element 1 is your character and element 2 is the background prop, this node lets you rewrite element 1's description from the graph while the studio keeps its geometry and everything else.

    The killer use case is the LLM loop. Draw the boxes in the studio, leave the descriptions to a language model, and have it write each box's content through one of these nodes per element. That's not hypothetical - it's the workflow a user described on r/StableDiffusion when this pack came out: drop the boxes with IdeogramHelper, let a local Qwen model fill every description, generate. This node is the per-box half of that setup.

    The inputs

    • id - which element to overwrite, INT, starting at 1. This is the number shown in the studio's element list, and critically it's the output element number - muted boxes don't make it into the caption, so indices count the elements that actually ship, not everything in the editor. Get the numbering wrong and you patch the wrong box, silently.
    • desc - the new description for that element. Blank = ignored, so you can patch just one field of an element.
    • text - new literal text, for text elements only. If the element isn't a text element, text is skipped entirely - setting it does nothing rather than converting the box.
    • colors - comma-separated hex for that element's palette, max 5 (per-element palettes cap tighter than the image-wide 16). #FF0000, #0a0, FFAA00 shorthand works.

    The output

    overrides, type IDEOGRAM_OVERRIDE, carrying a per-index patch. Wire it into an Ideogram Studio Override List to patch several elements at once, then the list's single output into the studio's overrides input. (The list merges per-index patches, so element 1 from one node and element 2 from another coexist fine.)

    Installing it

    Ships with the pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/nynxz/ComfyUI-IdeogramHelper
    

    Restart ComfyUI, look under Ideogram → Ideogram Studio Element Override. No pip deps; just needs a recent ComfyUI for the V3 API.

    Gotchas

    The id numbering is the one real trap - it counts enabled, output elements, so if you mute box 2 in the studio, the boxes renumber underneath you and element 3's patch lands on what used to be element 4. Blank fields being ignored is a feature for the LLM loop (a node that wrote nothing just doesn't touch the box), but it also means you can't clear a description with this node. And if your patch "isn't working," double-check the id against the studio's current list - stale numbers are the usual culprit, not a broken node.

    CategoryIdeogram

    Inputs (4)

    NameTypeDefaultDescription
    idINT11–999Element number as shown in the studio (starts at 1)
    descSTRINGNew description for this element
    textSTRINGNew literal text (text elements only)
    colorsSTRINGComma-separated hex colours, e.g. #FF0000, #0a0, FFAA00 (max 5)

    Outputs (1)

    NameTypeDescription
    overridesIDEOGRAM_OVERRIDE