ComfyUI-Custom-Scripts
ComfyUI-Custom-Scripts is a powerful extension for ComfyUI, created by pythongosssss, that adds a wide range of enhancements and experimental features to streamline your workflow, automate repetitive tasks, and improve the overall user experience. It’s especially useful for artists, prompt engineers, and anyone who wants to get more out of ComfyUI.
Installation & Updates
Install via ComfyUI Manager:
- Open the Manager in ComfyUI.
- Go to the Custom Nodes Manager.
- Search for
pythongosssss/ComfyUI-Custom-Scripts
and install it. - Restart ComfyUI and refresh your browser to see the new nodes and features.
Manual Install:
Open a terminal and navigate to your
custom_nodes
directory inside your ComfyUI folder.Run:
git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts.git
Restart ComfyUI and refresh your browser.
To update:
Navigate to the
ComfyUI-Custom-Scripts
folder insidecustom_nodes
.Run:
git pull
Restart ComfyUI and refresh your browser to apply updates.
Key Features
Note: Some features in this extension are marked as experimental, WIP (Work In Progress), or testing. These features may change, be unstable, or behave differently between releases. Please check the official repository for the latest status and updates.
- Autocomplete: Embedding and custom word autocomplete, with support for danbooru tags and custom lists.
- Auto Arrange Graph: Automatically organizes your node graph in execution order for better readability.
- Always Snap to Grid: Ensures nodes always align to the grid for a tidy workspace.
- Loader Lists with Previews: Custom LoRA and Checkpoint loader nodes can show preview images (just place a PNG/JPG next to your model file).
- Checkpoint/LoRA/Embedding Info: View detailed info about loaded models and embeddings directly from the UI.
- Constrain Image: Resize images to max/min dimensions, with optional cropping.
- Custom Colors: Personalize node and group colors with a color picker.
- Favicon Status: The browser tab favicon and title update to reflect queue status and progress.
- Image Feed: See a live panel of generated images, with customizable layout and direction.
- KSampler (Advanced) Denoise Helper: Easily set custom denoise values for advanced sampling.
- Math Expression Node: Evaluate complex expressions using graph values, supporting arithmetic, functions, and referencing other nodes.
- Node Finder: Quickly jump to nodes by type or execution order.
- Preset Text & Show Text: Save reusable text snippets and debug text outputs.
- Quick Nodes: Fast setup for common graph components.
- Play Sound & System Notification: Get audio and browser notifications when nodes finish processing.
- Repeater Node (WIP): Create repeated node structures or outputs for batch operations.
- Show Image on Menu: Display the currently generating image in the menu bar.
- String Function: Advanced text manipulation, including regex replace and tag tidying.
- Touch Support: Basic support for tablets and touch devices.
- Widget Defaults: Set default values for widgets when adding new nodes.
- Workflows & Workflow Images: Save/load entire workflows and export/import graphs as SVG/PNG.
- Link Render Mode: Choose between straight, linear, or spline links between nodes for better visual clarity.
Feature Changes & Migrations
- WD14 Tagger: This feature has moved to its own repository. For WD14 Tagger support, see: https://github.com/pythongosssss/ComfyUI-WD14-Tagger
- Lock Nodes & Groups: This is now a standard feature of ComfyUI itself and is no longer unique to ComfyUI-Custom-Scripts.
Text Autocomplete
This functionality allows you to autocomplete your text as you type, which you can enable or disable in the settings.
You can paste in an entire .csv
file into the text box in the “Manage Custom Words” and you should see the words you added appear in the dropdown menu when you type into a prompt!
If you need a .csv
file with words, you can use my spellbook if you really want!
Always Snap to Grid
It will be like holding Shift
while moving nodes and groups, without actually having to hold down Shift
. Genius!
PlaySound and SystemNotification
These two nodes play a sound and display a notification every time something ran through them. It’s super useful if you have a slow GPU or if you are working on animations and things just take a while to cook!
Image Feed
This used to be my favorite feature, but since the new UI, I prefer the Queue (q
) in the sidebar panel.
Preset Text and Show Text
The Preset Text
node lets you create your own preset text, which you can then reuse easily and the Show Text
node let’s you easily debug your text related shenanigans with ComfyUI by displaying them.
Workflow Image
This lets you export your workflow as an SVG or PNG file. Very handy!