adieyal / comfyui-dynamicprompts

ComfyUI custom nodes for Dynamic Prompts
MIT License
187 stars 20 forks source link

What is the Syntax to call Json/Yaml files? #17

Open Euchale opened 10 months ago

Euchale commented 10 months ago

I can use txt files just fine, but I do not know the syntax for JSON/YAML and its not listed in the tutorial from what I can see. Edit: Oh and maybe also an explanation on how to call files that are in folders I tried collections/FILENAME but that didn´t work for me.

adieyal commented 7 months ago

Have you had a look here: https://github.com/adieyal/sd-dynamic-prompts/blob/main/docs/SYNTAX.md#yaml-files Here is an example: https://github.com/adieyal/sd-dynamic-prompts/blob/main/collections/publicprompts.yaml

Oh and maybe also an explanation on how to call files that are in folders I tried collections/FILENAME but that didn´t work for me.

If this is your directory structure

wildcards/
├─ animals/
│  ├─ snakes.txt

then use __animals/snakes__ (note that I removed the .txt)