olegchomp / TDComfyUI

TouchDesigner interface for ComfyUI
151 stars 9 forks source link

[fix] code fix for TD-UI #17

Open maybites opened 5 months ago

maybites commented 5 months ago

Hi

Thank you very much for your tool. It works like a charm!

Here is a little fix we applied to make the generated UI inside TD match the ConfyUI node titles:

file TdcomfyEXT -> line 166

class_title = comfyJson[node]['_meta']['title']
inputs = comfyJson[node]['inputs']

par_header = page.appendHeader(f'Header{node}',label=class_title,replace=True)

It grabs the node title and uses that instead of the node type - usefull especially if one has multiple of the same node type in the comfyUI patcher.

cheers

martin