ComfyUI Node
Variable Image Loader (SBTools)
A ComfyUI node in SBTools/Image with 10 inputs and 4 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| folder_path | STRING | Path to folder containing images (absolute or relative) | |
| pattern | STRING | * | File pattern for glob matching (e.g., '*.png', 'body_*.jpg'). Use '**/*' with subfolders enabled. |
| index | INT | 00–999999 | Index to select which image in sequential mode (loops automatically) |
| randomize | BOOLEAN | false | Enable random selection (off = sequential by index) |
| seed | INT | 00–4294967295 | Seed for random selection |
| var_listopt | VARIABLE_LIST | Optional: Connect from VariableFolder to enable conditional image loading | |
| include_subfoldersopt | BOOLEAN | false | Search in subfolders (requires '**/' in pattern) |
| include_extensionopt | BOOLEAN | false | Include file extension in filename output |
| fill_backgroundopt | BOOLEAN | false | Fill transparent areas with solid color (default: keep transparency) |
| background_coloropt | STRING | #FFFFFF | Background color in hex format (e.g., #FFFFFF for white) |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| IMAGE | IMAGE | — |
| VAR_LIST | VARIABLE_LIST | — |
| TOTAL_IMAGES | INT | — |
| FILENAME | STRING | — |