Nodes/ComfyUI-Leputen-Utils/Load DDS Images (Batch)
ComfyUI Node

Load DDS Images (Batch)

Iterates through and loads DDS files from a directory in batches.

By lilquail·Created 8 months ago·Updated 8 months ago· 1
Load DDS Images (Batch)
    • image
    • mask
    • filename
    • path
    • format
    • color_space
    directorypath/to/folder
    pattern*
    include_subfoldersfalse
    batch_index0
    batch_size-1
    alpha_bleedtrue
    blur_radius0.0
    invert_maskfalse
    CategoryLeputen-Utils/DDS

    Inputs (8)

    NameTypeDefaultDescription
    directorySTRINGpath/to/folderThe absolute path to the directory containing files to load.
    patternSTRING*Filename filter pattern using glob syntax. Examples: • * = all files • *_a.dds = files ending in _a.dds • texture_* = files starting with texture_ Multiple patterns: Use semicolon (;) to match multiple patterns: • *_a.dds;*_n.dds = albedo and normal maps
    include_subfoldersBOOLEANfalseIf enabled, recursively scans subdirectories for matching files.
    batch_indexINT0Current batch index. Connect an external iterator for automatic incrementing.
    batch_sizeINT-1Number of files to load per batch. Set to -1 to load ALL files at once.
    alpha_bleedBOOLEANtrueEnable alpha bleeding to prevent halo artifacts around transparent areas.
    blur_radiusoptFLOAT0.00–10Apply blur during alpha bleeding for smoother transitions.
    invert_maskoptBOOLEANfalseInvert the output mask (white becomes black and vice-versa).

    Outputs (6)

    NameTypeDescription
    imageIMAGE
    maskMASK
    filenameSTRING
    pathSTRING
    formatBC1_UNORM,BC2_UNORM,BC3_UNORM,BC4_UNORM,BC5_UNORM,BC6H_UF16,BC6H_SF16,BC7_UNORM,R16G16B16A16_FLOAT,R32G32B32A32_FLOAT,R8G8B8A8_UNORM,B8G8R8A8_UNORM,B8G8R8X8_UNORM,R10G10B10A2_UNORM
    color_spacesRGB,Linear