ComfyUI Node
MD: Filename Counter
A ComfyUI node in MD_Nodes/Utility with 8 inputs and 3 outputs.
MD: Filename Counter
- formatted_counter
- current_value
- info
◄context_keydefault_counter►
◄start_value1►
◄increment1►
◄padding4►
◄reset_counterfalse►
◄prefix#►
◄suffix►
◄triggertrue►
CategoryMD_Nodes/Utility
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| context_key | STRING | default_counter | CONTEXT KEY • Purpose: Unique name to identify this counter in the JSON save file. • Usage: Use different keys for different projects to keep counts separate. ⭐ e.g., 'Project_Alpha', 'Daily_Renders' |
| start_value | INT | 10–999999 | START VALUE • Purpose: Initial value if key doesn't exist or is reset. |
| increment | INT | 11–100 | INCREMENT • Purpose: Amount to increase counter by on each run. |
| padding | INT | 40–8 | ZERO PADDING • Purpose: Number of digits to pad (e.g. 4 padding -> 0001). |
| reset_counteropt | BOOLEAN | false | RESET COUNTER • Purpose: If True, forces counter back to 'start_value'. |
| prefixopt | STRING | # | PREFIX • Purpose: String added before the number (e.g., '#0001'). |
| suffixopt | STRING | SUFFIX • Purpose: String added after the number. | |
| triggeropt | BOOLEAN | true | TRIGGER • Purpose: Controls if the counter saves and advances. • ON (Increment): Updates value and saves to disk. • OFF (Read Only): Returns current value without changing it. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| formatted_counter | STRING | — |
| current_value | INT | — |
| info | STRING | — |