this repo relates to the workflow import functionality.
changes:
ability to load the groups backdrops as nuke backdrops
if a node as been modified and the widget is now an input, it will be catched
if a node uses dynamic JS widgets they should be catched and updated (this might need more testing)
PrimitiveNodes are converted into different custom nodes that are not JS front end only (COMBO not supported). 'CR Seed' and 'Easy Use' custom nodes require (you can change it to anything you prefer, there is plenty of options)
Get/Set nodes are catched as well and converted into hidden inputs
I had to modify some important function like create_node() to be able to pass the 'attrs' data, to parse important infos. The code could be indeed cleaner, maybe a 'unified' dictionary of the workflow file and the default nodes data might be the best solution. Also I had to 'bake' some infos to imitate JS behaviour, especially for the Primitive node, that might be another good candidate for some refactoring
Thanks, when I have some time I'll review it and merge it, and I can ask you to share with me the sample workflow.json to test what you did, in case I don't have any plugin in ComfyUI that I'm missing.
this repo relates to the workflow import functionality.
changes:
I had to modify some important function like create_node() to be able to pass the 'attrs' data, to parse important infos. The code could be indeed cleaner, maybe a 'unified' dictionary of the workflow file and the default nodes data might be the best solution. Also I had to 'bake' some infos to imitate JS behaviour, especially for the Primitive node, that might be another good candidate for some refactoring