-
Clone the repository:
git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts.git
to your ComfyUIcustom_nodes
directoryThe script will then automatically install all custom scripts and nodes.
It will attempt to use symlinks and junctions to prevent having to copy files and keep them up to date.
- For uninstallation:
- Delete the cloned repo in
custom_nodes
- Ensure
web/extensions/pysssss/CustomScripts
has also been removed
- Delete the cloned repo in
- Navigate to the cloned repo e.g.
custom_nodes/ComfyUI-Custom-Scripts
git pull
Adds a menu option to auto arrange the graph in order of execution, this makes very wide graphs!
Adds a setting to make moving nodes always snap to grid.
Adds custom Lora and Checkpoint loader nodes, these have the ability to show preview images, just place a png or jpg next to the file and it'll display in the list on hover (e.g. sdxl.safetensors and sdxl.png).
Optionally enable subfolders via the settings
Adds a node for resizing an image to a max & min size optionally cropping if required.
Adds a custom color picker to nodes & groups
Adds a favicon and title to the window, favicon changes color while generating and the window title includes the number of prompts in the queue
Adds a panel showing images that have been generated in the current session, you can control the direction that images are added and the position of the panel via the ComfyUI settings screen and the size of the panel and the images via the sliders at the top of the panel.
Provides a simple method to set custom denoise on the advanced sampler
Adds a lock option to nodes & groups that prevents you from moving them until unlocked
Allows for evaluating complex expressions using values from the graph.
Other nodes values can be referenced via the Node name for S&R
via the Properties
menu item on a node, or the node title.
The above example evaluates as (10 * 512) / 2 + 1000
.
Supported operators: + - * /
(basic ops) //
(floor division) **
(power) ^
(xor) %
(mod)
Supported functions floor(num, dp?)
floor(num)
ceil(num)
randomint(min,max)
Adds a menu item for following/jumping to the executing node, and a menu to quickly go to a node of a specific type.
Adds a node that lets you save and use text presets (e.g. for your 'normal' negatives)
Adds various menu items to some nodes for quickly setting up common parts of graphs
Plays a sound when the node is executed, either after each prompt or only when the queue is empty for queuing multiple prompts.
You can customize the sound by replacing the mp3 file web/extensions/pysssss/CustomScripts/assets\notify.mp3
Node allows you to either create a list of N repeats of the input node, or create N outputs from the input node.
You can optionally decide if you want to reuse the input node, or create a new instance each time (e.g. a Checkpoint Loader would want to be re-used, but a random number would want to be unique)
TODO: Type safety on the wildcard outputs to require match with input
Takes input from a node that produces a string and displays it, useful for things like interrogator, prompt generators, etc.
Shows the current generating image on the menu at the bottom, you can disable this via the settings menu.
Supports appending and replacing text
tidy_tags
will add commas between parts when in append
mode.
replace
mode supports regex replace by using /your regex here/
and you can reference capturing groups using \number
e.g. \1
Provides basic support for touch screen devices, its not perfect but better than nothing
Allows you to specify default values for widgets when adding new nodes, the values are configured via the settings menu
Adds options to the menu for saving + loading workflows:
Adds menu options for importing/exporting the graph as SVG and PNG showing a view of the nodes
Provides a node that allows rerouting primitives.
The node can also be collapsed to a single point that you can drag around.
Warning: Don't use normal reroutes or primitives with these nodes, it isn't tested and this node replaces their functionality.
Moved to: https://github.com/pythongosssss/ComfyUI-WD14-Tagger
Allows you to control the rendering of the links between nodes between straight, linear & spline, e.g. Straight.
- ✨ Add repeater node for generating lists or quickly duplicating nodes
- 🐛 Support quick Add LoRA on custom Checkpoint Loader
- ✨ Support
randomint(min,max)
function in math node - 🎨 Use relative imports to support proxied urls not on root path (thanks to @mcmonkey4eva)
- ✨ Support
round
floor
ceil
functions in math node - 🐛 Fix floor division in math node
- 🎨 Image feed now uses a lightbox for showing images
- 🎨 Better loader lists now supports images named
{name}.preview.png
- ✨ Enable filter box on submenus
- 🚨 The ComfyUI Lora Loader no longer has subfolders, due to compatibility issues you need to use my Lora Loader if you want subfolers, these can be enabled/disabled on the node via a setting (🐍 Enable submenu in custom nodes)
- ✨ Add custom Checkpoint Loader supporting images & subfolders
- ✨ Add Play Sound node for notifying when a prompt is finished
- ✨ Quick Nodes supports new LoRA loader ("Add 🐍 LoRA")
- ♻️ Disable link render mode if ComfyUI has native support
- ✨ Always snap to grid now applies on node resize
- 🐛 Fix reroute primitive widget value not being restored on reload
- ✨ Workflows now reuse last filename from load & save - save must be done by the submenu
- ✨ Add "Always snap to grid" setting that does the same as holding shift, aligning nodes to the grid
- 🚨 No longer populates image feed when its closed
- 🐛 Allow lock/unlock of multiple selected nodes
- 🎨 Image feed now uses comfy theme variables for colors
- 🐛 Link render mode redraws graph on change of setting instead of requiring mouse move
- 🎨 Update to image feed to make more user friendly, change image size to column count, various other tweaks (thanks @DrJKL)
- 🐛 Fix issue with context menu (right click) not working for some users after Lora script updates
- ✨ Add "Custom" option to color menu for nodes & groups
- 🐛 Fix String Function values converted to unconnected inputs outputting the text "undefined"
- ✨ Added Reroute Primitive combining the functionality of reroutes + primitives, also allowing collapsing to a single point.
- ✨ Add support for exporting workflow images as PNGs and optional embedding of metadata in PNG and SVG
- ✨ Remove new lines in Math Expression node
- ✨ String function is now an output node
- 🐛 Fix conflict between Lora Loader + Lora submenu causing the context menu to be have strangely (#23, #24)
- 🎨 Rename "SVG -> Import/Export" to "Workflow Image" -> Import/Export
- ✨ Added custom Lora Loader that includes image previews
- ✨ Add preview output to string function node
- 📄 Updated missing/out of date parts of readme
- 🐛 Fix crash on show image on menu when set to not show (thanks @DrJKL)
- 🐛 Fix incorrect category (util vs utils) for math node (thanks @DrJKL)
- ✨ Save Image Feed close state
- 🐛 Fix unlocked group size calculation
- 🐛 Fix preset text incompatibility with Impact Pack (thanks @ltdrdata)
- ✨ Add Math Expression node for evaluating expressions using values from the graph
- ✨ Add settings for image feed location + image order
- 🐛 Fix unlocking group using incorrect size
- ✨ Save visibility of image feed
- ✨ Added auto installation of scripts and
__init__
(thanks @TashaSkyUp) - ♻️ Reworked folder structure
- 🚨 Renamed a number of nodes to include
pysssss
to prevent name conflicts - 🚨 Remove Latent Upscale By as it is now a built in node in ComfyUI
- 🚨 Removed Anime Segmentation to own repo
- ✨ Add Link Render Mode setting to choose how links are rendered
- ✨ Add Constrain Image node for resizing nodes to a min/max resolution with optional cropping
- ✨ Add Show Image On Menu to include the latest image output on the menu
- ✨ Add KSamplerAdvanced simple denoise prompt for configuring the node using steps + denoise
- 🎨 Add sizing options to Image Feed
- ♻️ Include canvas2svg for SVG export in assets to prevent downloading at runtime
- 🎨 Add background color (using theme color) to exported SVG
- 🐛 Fix Manage Widget Defaults to work with new ComfyUI settings dialog
- 🐛 Increase Image Feed z-index to prevent node text overlapping