Random nodes for ComfyUI I made to solve my struggle with ComfyUI. Have varying quality.
More Docs (can be shown directly in the UI if rgthree is installed).
![Screenshot 2023-12-31 123714](https://private-user-images.githubusercontent.com/11626920/293522080-b5041e95-f39d-48f3-989c-ae6b2aca857d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM4ODA4NDcsIm5iZiI6MTcyMzg4MDU0NywicGF0aCI6Ii8xMTYyNjkyMC8yOTM1MjIwODAtYjUwNDFlOTUtZjM5ZC00OGYzLTk4OWMtYWU2YjJhY2E4NTdkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE3VDA3NDIyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWI4MjJhZDhhNzhjZmYzZmE2NTQ0ZWI5N2U3ZGE2YTkzODhjODVkNWMyZjg2MzlhMWE1MTc0ZWE0YjZmYzE5YjgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.jCRTm-eFEW1YcRlPkMVT5eLLk_WFO7moaX6z1B0yn-c)
Piping:
Highway
: yet another implementation but overkill version of pipe and reroute.HighwayBatch
: batching version ofHighway
.Junction
: over-the-head data packing and unpacking sequentially.JunctionBatch
: ifJunction
and ComfyUI batching have a kid.Merge
: pipe and batch merging.
Misc:
BoxRange
: visualization of boxes. usefull for anything that requires boxes (which isx
,y
,width
,height
).- Currently only
ConditioningSetAreaPercentage
and anything that havepercentage size
and have exactx,y,width,height
input name are supported. More will come in the future. - Double click on each corner and discover what each will do.
- Currently only
Beautify
: the beautification of data for easy troubleshooting.Stringify
: anything to string, optionally together.RandomInt
: different from other implementation such that it generate number server side to works withLoop
.Hub
: widget management to the max.- Image display does not work for now, alongside with other 3rd party custom. But it should generally stable.
CastReroute
: basically likeReroute
but have ability to specify custom type. Useful when dealing withHighway
,Junction
and such.
Control Flow:
Loop
: very hacky recursive repetition by messing with ComfyUI internals.Hold
: hold data between each loop execution.Count
: simple counter to use withLoop
.
"Execute anything" node:
ScriptNode
ScriptRule
Script
Tons more nodes. Here's the simple workflow image that showcase everything within this update.
For any nodes related to Script
, *_order
widget will determine script execution order, which depends on natsort. How it being sorted can be customized by doing things like INT, LOCALE
within the _sort_mode
widget.
Warning: The recent changes I have changed how Highway and Junction tracking types. Therefore the best way to mitigrate this is to just copy the _query
or _offset
, create a new Highway or Junction, paste the string then reconnect everything over. I've probably find a way to automate this.
I recommended you to play around with this sample workflow:
- Tutorial for various nodes.
- More testing.