comfyui-dynamicprompts
comfyui-dynamicprompts copied to clipboard
YAML File Weights Documentation
Hi,
This isn't really a bug for you but the guide you link to for random weights in YAML files is missing some key syntax and probably causing a lot of headaches, the listed syntax for random weights is
color:
- {2::red
| 3::blue
| 1::green
}
Which does not work and actually breaks the wildcard key. To properly use weights it needs to be wrapped in quotes like
color:
- "{8::red
| 3:blue
| 1::green
}"
For anyone trying to do this note you don't use the normal list format because then you'd have to add a list entry for everytime you want an item weighted.