ComfyUI-AutoFlow
A collection of utility nodes for ComfyUI focused on path processing and string operations.
Nodes (24)
Turn any mask into real transparency
Video plus mask, straight to transparent PNGs in one node
One boolean, five outputs — the branch node for people who hate wiring values twice
The little comparator that gives your graph an if/else
Export Hunyuan3D meshes with textures that survive Blender
Fit any image under a pixel budget without touching a calculator
Bundle a pile of ints into one list wire
How long is that list? Ask the node
Pull one value out of a list — safely, with a fallback
Loop over a folder of images without fighting ComfyUI's batch system
Load a transparent PNG and choose what shows behind it
Build a file path from parts — correctly, for once
Tear a file path apart without regex
Check that path before you feed it to a loader
Save RGBA frames without the alpha silently dying
Upper, lower, title, swapcase — without leaving the graph
Join two strings with a separator you actually control
Python .format() right in your workflow — great for filenames
Five strings, one separator, zero middleman
Find, replace, and count — regex optional
Split one ComfyUI string into a real list (and get a count for free)
Reformat a timestamp you already have, without touching regex
A 'now' timestamp that won't break your filenames
Burst a video into ComfyUI frames — upload or path mode, start frame and all
ComfyUI-AutoFlow
A collection of utility nodes for ComfyUI focused on path processing, string operations, and video processing.
Features
Path Processing Nodes
- Path Parser: Extract directory, filename, and extension from file paths
- Path Joiner: Combine directory, filename, and extension into a complete path
- Path Validator: Validate path format and check if paths exist
String Processing Nodes
- String Concatenator: Join two strings with optional separator
- Multi String Concatenator: Join multiple strings with separator
- String Replacer: Replace text with regex and case-sensitivity options
- String Splitter: Split strings by delimiter into multiple parts
- String Formatter: Format strings using Python format syntax
- String Case Converter: Convert string case (upper, lower, title, etc.)
Video Processing Nodes 🎬 NEW!
- Video To Images: Convert video files to image sequences
- Add Alpha Channel: Add mask as alpha channel to create transparent images
- Save Images With Alpha: Save transparent PNG image sequences
- Combine Video And Mask: One-step solution to combine video and mask into transparent PNGs
✨ Key Features:
- 🔄 Dual Input Modes: Upload mode or Path mode (boolean toggle)
- 📤 Upload Button: Click to browse and upload videos directly ⭐ NEW
- 🎬 Video Preview: Loop preview in node after selection ⭐ NEW
- 📁 Flexible: Process videos from anywhere on your system
- 🚀 Batch-Friendly: Perfect for automation and batch processing
- 🎯 Easy to Use: Choose the mode that fits your workflow
📖 Documentation:
- VIDEO_ALPHA_GUIDE.md - Complete video processing guide
- VIDEO_INPUT_MODES.md - Input modes comparison and usage
- COMFYUI_FRONTEND_DEV_RULES.md - Frontend extension development rules
Installation
-
Navigate to your ComfyUI custom nodes directory:
cd ComfyUI/custom_nodes/ -
Clone this repository:
git clone https://github.com/your-username/ComfyUI-AutoFlow.git -
Restart ComfyUI
Usage
After installation, you can find all AutoFlow nodes in the node menu under the "AutoFlow" category.
Path Processing Example
-
Path Parser:
- Input:
C:\workspace\hello.png - Output: Directory:
C:\workspace\, Filename:hello, Extension:.png
- Input:
-
Path Joiner:
- Input: Directory:
C:\workspace\, Filename:hello, Extension:.png - Output:
C:\workspace\hello.png
- Input: Directory:
String Processing Example
-
String Concatenator:
- Input: String A:
Hello, String B:World, Separator: - Output:
Hello World
- Input: String A:
-
String Formatter:
- Input: Template:
{v1}_{n1:03d}.png, Value 1:image, Number 1:42 - Output:
image_042.png
- Input: Template:
Node Categories
All nodes are organized under the AutoFlow category in ComfyUI:
- AutoFlow/Utilities
- Path Parser
- Path Joiner
- Path Validator
- String Concatenator
- Multi String Concatenator
- String Replacer
- String Splitter
- String Formatter
- String Case Converter
Requirements
- ComfyUI
- Python 3.7+
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.