ComfyUI_Comfyroll_CustomNodes
ComfyUI_Comfyroll_CustomNodes copied to clipboard
Add CR_ListProduct node
This PR creates a node that will take two lists, and run the python function product() on them then unzip the resulting list of tuples into two lists. The purpose is to get two lists which when consumed together go through all the combinations of the two original lists. This is very useful for generating XY-Plots in a single queued job on absolutely anything when used along side the CR_TextList, CR_IntegerRangeList, CR_FloatRangeList & CR_ImageGrid node. The span output gives the X dimension of the plot so that that can drive the max_columns input of the image grid.
An example crossing the checkpoint and CFG
Also fixed a couple of issues.
CR_Textlisthad been recently updated to take aloopsparameter, but it had no widget. Broke the node, so added the widget.CR_SelectFontfailed with aFileNotFoundexception on my system as notruetypedirectory existed under/usr/share/fonts. Used the standard libraryglob()function to search for.ttffiles from the/usr/share/fontslevel instead.
Looks like my change to CR_SelectFont is also fixed in #123, #111 and #117, and the loops problem is being discussed in #121 and #116.
Don't care if you take my changes on those or do something better. I was just fixing them for me whilst I was in the code.