Nodes/ComfyUI-RvTools_v2/Load Directory Settings
ComfyUI Node

Load Directory Settings

Bundle your folder options into one pipe

By r-vage·Created about a year ago·Updated 5 months ago· 23
Load Directory Settings
    • pipe
    Directory
    start_index0
    loadcap20

    Load Directory Settings is a settings-bundler, not a loader. It takes three values - a folder path, a starting index, and a cap on how many items to load - packs them into a single pipe, and hands you that pipe. The actual loading happens elsewhere; this node is about carrying the options to where the loading happens, down one tidy wire instead of three.

    This is the pack's version of a pattern that makes big ComfyUI graphs readable: instead of running three separate wires (a STRING for the path, an INT for the start, an INT for the cap) across the canvas to some folder loader, you bundle them into one pipe and unpack at the far end. In this pack the natural consumer is the companion Pipe Out Load Directory Settings node, which takes the pipe and splits it back out into directory (STRING), start_index (INT), and load_cap (INT) right next to whatever actually reads the folder. The pipe is just a delivery vehicle - three settings in, three settings out, with one wire in between.

    Why bother? Because it collapses clutter and, more importantly, it gives you one named place to edit all three values when you switch from batch-processing folder A to folder B. The settings live in one spot instead of being scattered through the graph.

    Inputs and outputs

    • Directory (STRING, default empty) - the folder path the eventual loader will read from.
    • start_index (INT, default 0) - which item to begin at; the loader-side consumer passes this straight through to whatever reads the folder.
    • loadcap (INT, default 20) - how many items to load at most.
    • Output pipe - a 3-element pipe carrying directory, start_index, loadcap in that order.

    That order matters if you ever feed this into something that unpacks the pipe manually - it's path, index, cap. The pack's own Pipe Out node knows the order, so if you use the intended pairing you never have to think about it.

    Installing it

    Ships in ComfyUI-RvTools_v2:

    cd ComfyUI/custom_nodes
    git clone https://github.com/r-vage/ComfyUI-RvTools_v2
    

    Restart ComfyUI or install via ComfyUI Manager (search "RvTools"). No model downloads; dependencies are the standard torch/numpy/Pillow plus opencv-python, pilgram, pynvml, piexif.

    Gotchas

    README says the pack is no longer maintained, superseded by ComfyUI_Eclipse (same author). The v2 nodes still run.

    The real thing to watch: this node does not load anything by itself, and the pipe type is a pack-local convention. If you don't also have the pack's Pipe Out Load Directory Settings (or a compatible consumer) in the workflow, you'll have a pipe with nowhere to go. And the Directory field is just a string - there's no filesystem validation here, so a typo won't error at this node, only later at the loader. Which is exactly why keeping all three settings in one visible, named place is worth it.

    Category🫦 RvTools II/ Settings

    Inputs (3)

    NameTypeDefaultDescription
    DirectorySTRING
    start_indexINT0
    loadcapINT20

    Outputs (1)

    NameTypeDescription
    pipepipe