Extensions/ComfyUI-AutoFlow
ComfyUI Extension

ComfyUI-AutoFlow

A collection of utility nodes for ComfyUI focused on path processing and string operations.

By ZXL-Xinram·Created about a year ago·Updated 8 months ago· 4
ZXL-Xinram/ComfyUI-AutoFlow
Nodes24
On cloudLocal install
CategoryAutoFlow/Video, AutoFlow/Utilities
Stars4
Updated8 months ago

Nodes (24)

Add Alpha Channel

Turn any mask into real transparency

AutoFlow/Video
Combine Video And Mask (One-Step)

Video plus mask, straight to transparent PNGs in one node

AutoFlow/Video
Condition Assignment

One boolean, five outputs — the branch node for people who hate wiring values twice

AutoFlow/Utilities
Condition Checker

The little comparator that gives your graph an if/else

AutoFlow/Utilities
Export Textured Mesh

Export Hunyuan3D meshes with textures that survive Blender

AutoFlow/Utilities
Image Resize Calculator

Fit any image under a pixel budget without touching a calculator

AutoFlow/Image
Int to List Converter

Bundle a pile of ints into one list wire

AutoFlow/Utilities/Converters
List Length

How long is that list? Ask the node

AutoFlow/Utilities/Converters
List to Int Extractor

Pull one value out of a list — safely, with a fallback

AutoFlow/Utilities/Converters
Load Images For Loop with Background

Loop over a folder of images without fighting ComfyUI's batch system

AutoFlow/image
Load Image with Background

Load a transparent PNG and choose what shows behind it

AutoFlow/image
Path Joiner

Build a file path from parts — correctly, for once

AutoFlow/Utilities
Path Parser

Tear a file path apart without regex

AutoFlow/Utilities
Path Validator

Check that path before you feed it to a loader

AutoFlow/Utilities
Save Images With Alpha

Save RGBA frames without the alpha silently dying

AutoFlow/Video
String Case Converter

Upper, lower, title, swapcase — without leaving the graph

AutoFlow/Utilities
String Concatenator

Join two strings with a separator you actually control

AutoFlow/Utilities
String Formatter

Python .format() right in your workflow — great for filenames

AutoFlow/Utilities
Multi String Concatenator

Five strings, one separator, zero middleman

AutoFlow/Utilities
String Replacer

Find, replace, and count — regex optional

AutoFlow/Utilities
String Splitter

Split one ComfyUI string into a real list (and get a count for free)

AutoFlow/Utilities
Timestamp Formatter

Reformat a timestamp you already have, without touching regex

AutoFlow/utilities
Timestamp Generator

A 'now' timestamp that won't break your filenames

AutoFlow/utilities
Video To Images

Burst a video into ComfyUI frames — upload or path mode, start frame and all

AutoFlow/Video
Readme

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:

Installation

  1. Navigate to your ComfyUI custom nodes directory:

    cd ComfyUI/custom_nodes/
    
  2. Clone this repository:

    git clone https://github.com/your-username/ComfyUI-AutoFlow.git
    
  3. Restart ComfyUI

Usage

After installation, you can find all AutoFlow nodes in the node menu under the "AutoFlow" category.

Path Processing Example

  1. Path Parser:

    • Input: C:\workspace\hello.png
    • Output: Directory: C:\workspace\, Filename: hello, Extension: .png
  2. Path Joiner:

    • Input: Directory: C:\workspace\, Filename: hello, Extension: .png
    • Output: C:\workspace\hello.png

String Processing Example

  1. String Concatenator:

    • Input: String A: Hello, String B: World, Separator:
    • Output: Hello World
  2. String Formatter:

    • Input: Template: {v1}_{n1:03d}.png, Value 1: image, Number 1: 42
    • Output: image_042.png

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.