Browse Source

Update README.md

filenames section
wyrde-docs
wyrde 2 years ago
parent
commit
5cce0b1c3a
  1. 35
      basics/README.md

35
basics/README.md

@ -15,14 +15,45 @@
Notes: Notes:
* Ctrl + X does nothing. * Ctrl + X does nothing.
* muted nodes don't process and block everythintg behind them * muted nodes don't process and block everythintg behind them
* Ctrl+C, Ctrl+V, Ctrl+X, work normally inside a text box/field
* The text areas are like a separate layer. Space and copy/paste functions act normal inside them and use comfyUI functions outside.
## Organization ## Organization
* Add pythongosssss _Node Templates_ [from this repo](https://github.com/pythongosssss/ComfyUI-Custom-Scripts). Download the node-templates file and put it in `ComfyUI/web/extensions/`. (Don't copy paste the editor display, save the raw file.) This repo has some other super helpful extensions as well. * ~~Add pythongosssss _Node Templates_ [from this repo](https://github.com/pythongosssss/ComfyUI-Custom-Scripts). Download the node-templates file and put it in `ComfyUI/web/extensions/`. (Don't copy paste the editor display, save the raw file.) This repo has some other super helpful extensions as well.~~ Templates are now in ComfyUI.
* Also recommended is _image-feed_ and workflow-svg * I still recommended _image-feed_ and workflow-svg from [the repo](https://github.com/pythongosssss/ComfyUI-Custom-Scripts)
* noodles (the wires) can be organized with _reroute_ nodes. It takes extra time, but it makes figuring out a workflow a few days later much easier. Much less someone else. * noodles (the wires) can be organized with _reroute_ nodes. It takes extra time, but it makes figuring out a workflow a few days later much easier. Much less someone else.
* _SaveImage_ can do sub folders. The format is `folder/imageprefix`. * _SaveImage_ can do sub folders. The format is `folder/imageprefix`.
* The _LoadImage_ node is (at this writing) too small. Drag the bottom down to show the image preview. Glory at the terrible sketch comfy made for an example! * The _LoadImage_ node is (at this writing) too small. Drag the bottom down to show the image preview. Glory at the terrible sketch comfy made for an example!
## Filenames
Output files can be customized with substitutions
```
%date:d-M-yy%
```
all the variable available:
```
yy -> last 2 digit of year (23)
yyyy -> full year format (2023)
d -> day number
M -> month number
h -> hour
m -> minute
s -> second
```
* Put in a `/` to create a folder like `%date:d-M-yyyy%/ComfyUI`
* `%width%` and `%height%` are also supported.
* Various items from nodes can also be included. Right click on a node, click on `properties` and use the contents of the _Node name for S&R_ property and the name of the _data_field_.
* Example of putting the checkpoint in the file name:
<img src=filename01.png" width="50%" align="bottom">
<img src=filename03.png" width="50%" align="bottom">
* The _node names for S&R_ is `CheckpointLoaderSimple`
* The _data_field_ is `ckptt_name`
* combine with a `.` between: `%CheckpointLoaderSimple.ckptt_name`
* and put that in the *filename_prefix* of the _Save Image_ node
<img src=filename02.png" width="50%" align="bottom">
<sub>Thanks to _Davemane42_ for pointing this out!</sub>
## Tips and Philosophy ## Tips and Philosophy
* ComfyUI has a philosophy of keep it simple. Don't try to create a "do it all" workflow, instead focus on a specific objective. * ComfyUI has a philosophy of keep it simple. Don't try to create a "do it all" workflow, instead focus on a specific objective.

Loading…
Cancel
Save