File size: 12,037 Bytes
e0e88f3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 |
# ComfyUI-Custom-Scripts
# Installation
1. Clone the repository:
`git clone https://github.com/pythongosssss/ComfyUI-Custom-Scripts.git`
to your ComfyUI `custom_nodes` directory
The 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
# Update
1. Navigate to the cloned repo e.g. `custom_nodes/ComfyUI-Custom-Scripts`
2. `git pull`
# Features
## Auto Arrange Graph

Adds a menu option to auto arrange the graph in order of execution, this makes very wide graphs!
## Always Snap to Grid

Adds a setting to make moving nodes always snap to grid.
## [Testing] "Better" Loader Lists

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, subfolders currently don't support filtering but support should be coming soon!
## Constrain Image
Adds a node for resizing an image to a max & min size optionally cropping if required.
## Custom Colors

Adds a custom color picker to nodes & groups
## Favicon Status


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
## Image Feed

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.

## KSampler (Advanced) denoise helper
Provides a simple method to set custom denoise on the advanced sampler


## Lock Nodes & Groups

Adds a lock option to nodes & groups that prevents you from moving them until unlocked
## Lora Subfolders

Changes the lora menu into a dropdown of subfolders, not currently compatible with the searching/filtering (the search won't appear on submenus)
## Math Expression
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`.
## Node Finder

Adds a menu item for following/jumping to the executing node, and a menu to quickly go to a node of a specific type.
## Preset Text

Adds a node that lets you save and use text presets (e.g. for your 'normal' negatives)
## Quick Nodes

Adds various menu items to some nodes for quickly setting up common parts of graphs
## Play Sound

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`
## Show Text

Takes input from a node that produces a string and displays it, useful for things like interrogator, prompt generators, etc.
## Show Image on Menu

Shows the current generating image on the menu at the bottom, you can disable this via the settings menu.
## String Function

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`
## Touch Support
Provides basic support for touch screen devices, its not perfect but better than nothing
## Widget Defaults

Allows you to specify default values for widgets when adding new nodes, the values are configured via the settings menu

## Workflows
Adds options to the menu for saving + loading workflows:

## Workflow Images

Adds menu options for importing/exporting the graph as SVG and PNG showing a view of the nodes
## (Testing) Reroute Primitive
 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.
<br>
<br>
## WD14 Tagger
Moved to: https://github.com/pythongosssss/ComfyUI-WD14-Tagger
## Link Render Mode

Allows you to control the rendering of the links between nodes between straight, linear & spline, e.g. Straight.
<br>
<br>
# Changelog
## 2023-08-05
### Major
- π¨ 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)
### New
- β¨ Add custom Checkpoint Loader supporting images & subfolders
- β¨ Add Play Sound node for notifying when a prompt is finished
### Minor
- β¨ Quick Nodes supports new LoRA loader ("Add π LoRA")
- β»οΈ Disable link render mode if ComfyUI has native support
## 2023-08-04
### Minor
- β¨ 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
## 2023-08-02
### New
- β¨ Add "Always snap to grid" setting that does the same as holding shift, aligning nodes to the grid
### Minor
- π¨ No longer populates image feed when its closed
- π Allow lock/unlock of multiple selected nodes
# Changelog
## 2023-08-01
### Minor
- π¨ Image feed now uses comfy theme variables for colors
- π Link render mode redraws graph on change of setting instead of requiring mouse move
## 2023-07-30
- π¨ Update to image feed to make more user friendly, change image size to column count, various other tweaks (thanks @DrJKL)
## 2023-07-30
### Major
- π Fix issue with context menu (right click) not working for some users after Lora script updates
### New
- β¨ Add "Custom" option to color menu for nodes & groups
### Minor
- π Fix String Function values converted to unconnected inputs outputting the text "undefined"
## 2023-07-29
### New
- β¨ 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
### Minor
- β¨ 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
## 2023-07-27
### New
- β¨ Added custom Lora Loader that includes image previews
### Minor
- β¨ 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)
## 2023-07-27
### Minor
- β¨ Save Image Feed close state
- π Fix unlocked group size calculation
## 2023-07-21 + 22
### Minor
- π Fix preset text incompatibility with Impact Pack (thanks @ltdrdata)
## 2023-07-13
### New
- β¨ Add Math Expression node for evaluating expressions using values from the graph
### Minor
- β¨ Add settings for image feed location + image order
## 2023-06-27
### Minor
- π Fix unlocking group using incorrect size
- β¨ Save visibility of image feed
## 2023-06-18
### Major Changes
- β¨ 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
### New
- β¨ 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
### Other
- β»οΈ Include [canvas2svg](https://gliffy.github.io/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
|