Extensions/comfyui-ddu
ComfyUI Extension

comfyui-ddu

ai-driven toolchain for digital design and fabrication

By YL-Lyx·Created 11 months ago·Updated 11 months ago· 0
YL-Lyx/Comfyui-ddu-toolchain
Nodes
On cloudLocal install
Stars0
Updated11 months ago
Readme

comfyui-ddu

Custom nodes and UI extensions for ComfyUI.

Features

  • AddFloatsNode: Adds two floats and outputs the sum
  • UI button on the node: "Randomize a & b"
  • Top center floating toolbar (Grasshopper-style) to spawn AddFloatsNode
  • Red themed node styling

Installation

  1. Place this folder under ComfyUI/custom_nodes/ as comfyui-ddu
  2. (Optional) Install Python requirements:
    • From ComfyUI root with venv: run the provided installer
    python custom_nodes/comfyui-ddu/install.py
    

Usage

  • Start ComfyUI
  • In the UI:
    • Use the topbar button "Add DDU Add Floats" to drop the node
    • Or search for the node by name: "DDU Add Floats"
    • Click the node button "Randomize a & b" to fill inputs

Web Extension

  • The extension is registered in web/test.js
  • It colors the node red and injects UI elements

Node Implementation

  • See nodes/test.py for the AddFloatsNode class
  • Auto-loaded via __init__.py which scans the nodes/ directory

Troubleshooting

  • 404s for optional files (harmless):
    • GET /api/userdata/user.css → create ComfyUI/user/user.css
    • GET /api/userdata/comfy.templates.json → create ComfyUI/user/comfy.templates.json with []
  • Autocomplete endpoint 404 is from an optional extension; install or ignore

Development

  • Python deps in requirements.txt
  • JS extension lives in web/
  • Hot reload typically requires a UI refresh; some changes require a restart

Folder Structure

comfyui-ddu/
  __init__.py
  install.py
  requirements.txt
  nodes/
    test.py
  web/
    test.js
    assets/
      registry.js
      ui.js
      styles.css
      icons/
        *.svg
        map.json