Nodes/ComfyUI-SBTools/Variable Image Loader (SBTools)
ComfyUI Node

Variable Image Loader (SBTools)

A ComfyUI node in SBTools/Image with 10 inputs and 4 outputs.

By Amatsukast·Created 4 months ago·Updated 3 months ago· 0
Variable Image Loader (SBTools)
  • var_list
  • IMAGE
  • VAR_LIST
  • TOTAL_IMAGES
  • FILENAME
folder_path
pattern*
index0
randomizefalse
seed0
include_subfoldersfalse
include_extensionfalse
fill_backgroundfalse
background_color#FFFFFF
CategorySBTools/Image

Inputs (10)

NameTypeDefaultDescription
folder_pathSTRINGPath to folder containing images (absolute or relative)
patternSTRING*File pattern for glob matching (e.g., '*.png', 'body_*.jpg'). Use '**/*' with subfolders enabled.
indexINT00–999999Index to select which image in sequential mode (loops automatically)
randomizeBOOLEANfalseEnable random selection (off = sequential by index)
seedINT00–4294967295Seed for random selection
var_listoptVARIABLE_LISTOptional: Connect from VariableFolder to enable conditional image loading
include_subfoldersoptBOOLEANfalseSearch in subfolders (requires '**/' in pattern)
include_extensionoptBOOLEANfalseInclude file extension in filename output
fill_backgroundoptBOOLEANfalseFill transparent areas with solid color (default: keep transparency)
background_coloroptSTRING#FFFFFFBackground color in hex format (e.g., #FFFFFF for white)

Outputs (4)

NameTypeDescription
IMAGEIMAGE
VAR_LISTVARIABLE_LIST
TOTAL_IMAGESINT
FILENAMESTRING