Skip to content

olegchomp/TDComfyUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

TDComfyUI

Discord Shield

TouchDesigner interface for ComfyUI API

Screenshot_1

Tutorial

Installation

  1. Install ComfyUI
  2. Install ComfyUI Nodes for External Tooling
  3. Download latest TDcomfyUI component
  4. Add TDComfyUI.tox to TouchDesigner project.
  5. Run "Re-init" in "Settings" page of TDComfyUI component.

How to use:

  1. Set "Enable Dev mode Options" in ComfyUI settings.
  2. Create workflow
  3. Save workflow with "Save (API Format)"
  4. Drop/Load created file in TouchDesigner project (TextDAT). Connect DAT to TDComfyUI input (InDAT)
  5. Set parameters on Workflow page and run "Generate" on Settings page.

Image send/recieve:

  • Send to ComfyUI - "Load Image (Base64)" node should be used instead of default load image. In TouchDesigner set TOP operator in "ETN_LoadImageBase64 image" field on Workflow page.
  • Send to TouchDesigner - "Send Image (WebSocket)" node should be used instead of preview, save image and etc. nodes.

Load TouchDesigner_img2img.json in ComfyUI and TouchDesigner for Wokflow example.

Callbacks:

  • onConnected executed when component connectes to ComfyUI API
  • onDisconnected executed when component disconnected from ComfyUI API
  • onGenerated executed on ComfyUI response. Result returns status of execution.
  • onParameterCreated executed while workflow converts to parameters, useful for auto-filling parameters.