OdinSam FormatPaths
Multi-output path formatter for ComfyUI: wire parts a-z and build multiple directory prefixes from templates.
Features
| Feature | Notes |
|---------|--------|
| Part inputs | Starts with a only; connecting reveals the next letter up to z |
| Multi output | Default 1 path; + 输出 / - 输出 (max 16) |
| Templates | One field per path; Python str.format (e.g. {c:04d}) |
| Validation | Missing / empty parts or empty template → fail fast |
| Labels | With KIT: linked inputs can show UpstreamTitle(a) |
| OdinSamKit | Optional: link-chain, dynamic outputs, sections |
OdinSamKit
Business logic does not require KIT. Without it the node still runs (UI falls back to a crowded socket list).
| Item | Requirement |
|------|-------------|
| Minimum KIT version | OdinSamKit ≥ 0.2.8 |
| Check | Browser console: window.OdinSamKit.version |
| Relationship | Weak / optional enhancement |
Embedded config includes linkChains, countSync, countButtons, sections (parts / templates), and labelFrom: upstreamTitle.
Install
cd ComfyUI/custom_nodes
git clone https://github.com/odinGitGmail/ComfyUI-OdinSam-FormatPaths.git FormatPaths
# optional UI kit
git clone <OdinSamKit-repo> OdinSamKit
Restart ComfyUI. Node: 多路径格式化 (OdinSam) under OdinSam/FormatPaths.
Or install via Comfy Registry / Manager: odinsam-format-paths.
Minimal wiring
[string / path parts…] → a, b, c…
Fill templates, e.g. {a}/{b}/{c}
Use + 输出 for more paths
path_1 / path_2 … → Save Image filename_prefix
License
MIT