CivArchive
    comfy-LoRA-iterator node - v1.0
    Preview 127146089

    LoRA Iterator — ComfyUI Custom Node

    https://www.theoath.studio/projects/comfy-lora-iterator?utm_source=civitai

    A ComfyUI node that automatically steps through every LoRA in a directory or subdirectory on each generation run, allowing full LoRA testing without modifying the graph between runs.


    Install

    1. Clone or copy this folder into your ComfyUI/custom_nodes/ directory:

    cd ComfyUI/custom_nodes/
    git clone [email protected]:OATH-Studio/comfy-LoRA-iterator.git
    1. Restart ComfyUI.

    The node appears under:

    loaders/lora → LoRA Iterator

    Inputs

    InputTypeDescriptionmodelMODELBase model passthroughclipCLIPBase CLIP passthroughdirectoryDropdown[All] or a specific subdirectory inside the loras folderlora_nameDropdownCurrently selected LoRA (relative path)strength_modelFloat sliderLoRA strength applied to the diffusion modelstrength_clipFloat sliderLoRA strength applied to the CLIP encodercontrol_after_generateDropdownDefines how LoRA selection advances after each run


    Outputs

    OutputTypeDescriptionmodelMODELModel with LoRA appliedclipCLIPCLIP with LoRA appliedlora_nameSTRINGName of the LoRA used in the current runcurrent_indexINTZero-based index of current LoRAtotal_lorasINTTotal number of LoRAs in selected directory


    control_after_generate

    Defines how the node advances its internal LoRA selection after each generation.

    ModeBehaviourfixedAlways uses the same LoRAincrementMoves forward one LoRA per run, wraps to 0decrementMoves backward one LoRA per run, wraps to lastrandomizeSelects a random LoRA each run

    Example:

    You have 8 LoRAs in a directory. Set:

    • directory = zimage

    • control_after_generate = increment

    Queue 8 runs. Each run uses the next LoRA automatically.


    Directory Organisation

    The directory dropdown includes [All] and every immediate subdirectory inside:

    ComfyUI/models/loras/
        zimage/
            AnimeMix.safetensors
            Realism.safetensors
        sdxl/
            portrait.safetensors
        my_lora.safetensors
    • Selecting zimage limits iteration to that folder

    • [All] includes every LoRA across all folders

    Prevents mixing incompatible LoRAs with base models.


    Multiple Instances

    Each node instance tracks its own LoRA index independently using ComfyUI’s internal unique_id.

    Multiple iterator nodes in the same graph do not interfere with each other.


    Typical Workflow

    CheckpointLoader → LoRA Iterator → KSampler → VAEDecode → SaveImage
                             ↑
                control_after_generate = increment
                queue N runs (one per LoRA)

    Connect lora_name to filename prefix logic to embed the active LoRA name into saved outputs automatically.

    Description

    Other
    Other
    by i73

    Details

    Downloads
    22
    Platform
    CivitAI
    Platform Status
    Available
    Created
    4/11/2026
    Updated
    5/13/2026
    Deleted
    -

    Files

    comfyLoraIterator_v10.zip

    Mirrors

    CivitAI (1 mirrors)