TouchDesigner interface for ComfyUI API
- Install ComfyUI
- Install ComfyUI Nodes for External Tooling
- Download latest TDcomfyUI component
- Add TDComfyUI.tox to TouchDesigner project.
- Run "Re-init" in "Settings" page of TDComfyUI component.
- Set "Enable Dev mode Options" in ComfyUI settings.
- Create workflow
- Save workflow with "Save (API Format)"
- Drop/Load created file in TouchDesigner project (TextDAT). Connect DAT to TDComfyUI input (InDAT)
- Set parameters on Workflow page and run "Generate" on Settings page.
- 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.
- 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.