ComfyUI Node
MD: Smart Filename Builder
A ComfyUI node in MD_Nodes/Utility with 20 inputs and 2 outputs.
MD: Smart Filename Builder
- full_path_prefix
- filename_preview
◄presetCustom►
◄base_templateMD_Nodes_Workflow %Y-%m-%d►
◄project_pathAce-Step/313/►
◄mode_tag(Custom Mode)►
◄steps0►
◄schedule_info►
◄seed0►
◄genre►
◄custom_tag_1►
◄custom_tag_2►
◄counter_start0►
◄include_stepstrue►
◄include_scheduletrue►
◄include_seedfalse►
◄include_genrefalse►
◄include_countertrue►
◄separator - ►
◄genre_max_length40►
◄debug_mode0 - Silent►
◄enable_profilingfalse►
CategoryMD_Nodes/Utility
Inputs (20)
| Name | Type | Default | Description |
|---|---|---|---|
| preset | COMBO | Custom | FILENAME PRESET • Purpose: Automatically configure toggles and tags for standard MD workflows. • Options: Custom, Instrumental, Vocal, Master, etc. • Trade-offs: Presets override manual boolean toggles. ⭐ Recommended: 'Custom' for full manual control. |
| base_template | STRING | MD_Nodes_Workflow %Y-%m-%d | BASE TEMPLATE • Purpose: The primary starting text of the filename. • Format: Supports Python strftime codes (%Y=Year, %m=Month, %d=Day). ⭐ Recommended: Keep date at start for easy OS sorting. |
| project_path | STRING | Ace-Step/313/ | PROJECT SUBDIRECTORY • Purpose: Defines nested subfolders within the ComfyUI output directory. • Format: 'Folder/Subfolder/' (Auto-sanitized). ⭐ Recommended: Organize by Project/BPM/Version. |
| mode_tagopt | STRING | (Custom Mode) | MODE TAG (CUSTOM) • Purpose: A text tag identifying the workflow mode. • Requirement: Only active when Preset is set to 'Custom'. • Note: Parentheses are preserved during sanitization. |
| stepsopt | INT | 0 | SAMPLING STEPS • Purpose: Appends step count (e.g., '20S'). |
| schedule_infoopt | STRING | SCHEDULER INFO • Purpose: Appends scheduler name/sigma info. | |
| seedopt | INT | 00–9007199254740991 | SEED VALUE • Purpose: Appends JS-safe seed (e.g., 'Seed_12345'). |
| genreopt | STRING | GENRE TAGS • Purpose: Appends sanitized genre string. | |
| custom_tag_1opt | STRING | CUSTOM TAG 1 • Purpose: Extra user-defined tag (auto-sanitized). | |
| custom_tag_2opt | STRING | CUSTOM TAG 2 • Purpose: Extra user-defined tag (auto-sanitized). | |
| counter_startopt | INT | 00–99999 | COUNTER VALUE • Purpose: Current index for numbering (e.g. #0001). • Usage: Connect FilenameCounterNode here. |
| include_stepsopt | BOOLEAN | true | INCLUDE STEPS • Toggle appending step count. |
| include_scheduleopt | BOOLEAN | true | INCLUDE SCHEDULE • Toggle appending scheduler info. |
| include_seedopt | BOOLEAN | false | INCLUDE SEED • Toggle appending seed value. |
| include_genreopt | BOOLEAN | false | INCLUDE GENRE • Toggle appending genre tags. |
| include_counteropt | BOOLEAN | true | INCLUDE COUNTER • Toggle appending numbered index. |
| separatoropt | STRING | - | SEPARATOR • Purpose: String used to join filename parts. • Options: ' - ', '_', ' ', etc. ⭐ Recommended: ' - ' is most readable. |
| genre_max_lengthopt | INT | 4010–100 | GENRE MAX LENGTH • Purpose: Truncate long genre strings to keep filenames manageable. |
| debug_modeopt | COMBO | 0 - Silent | LOGGING VERBOSITY • Controls console output and string parse profiling. |
| enable_profilingopt | BOOLEAN | false | ENABLE PROFILING • Auto-on if debug >= 1. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| full_path_prefix | STRING | — |
| filename_preview | STRING | — |