yolain / ComfyUI-Easy-Use

In order to make it easier to use the ComfyUI, I have made some optimizations and integrations to some commonly used nodes.
GNU General Public License v3.0
1.09k stars 78 forks source link

How are you adding and removing fields from the lora stack when the num lora changes #371

Open Phando opened 2 months ago

Phando commented 2 months ago

Hello, I am writing a handful of nodes and want to mimic the cleanliness of your multi nodes. Then num_loras is changing, does the node call a function in another file? Can you please point me to where you are dynamically adding and removing fields when the num_loras changes?

Thank you!

yolain commented 2 months ago

You can use it like so: https://github.com/yolain/ComfyUI-Easy-Use/blob/9b5b2399e1ad97bac592b1138a388575811e437b/web_version/v1/js/easy/easyDynamicWidgets.js#L106C2-L127C3

Phando commented 2 months ago

Thank you!