Extensions/OdinSam FormatPaths
ComfyUI Extension

OdinSam FormatPaths

Multi-output path formatter for ComfyUI: wire parts a-z and build multiple directory prefixes from templates.

By odinGitGmail·Created 5 days ago·Updated a day ago· 0
odinGitGmail/ComfyUI-OdinSam-FormatPaths
Nodes—
On cloudLocal install
Stars0
Updateda day ago
Readme
<div align="center"> <h1>OdinSam FormatPaths</h1> <p> <a href="LICENSE"><img alt="License: MIT" src="https://img.shields.io/badge/License-MIT-yellow.svg"></a> <a href="pyproject.toml"><img alt="Version" src="https://img.shields.io/badge/version-1.2.3-blue.svg"></a> <a href="https://github.com/comfyanonymous/ComfyUI"><img alt="ComfyUI" src="https://img.shields.io/badge/ComfyUI-Custom%20Node-00b894.svg"></a> <a href="https://www.python.org/"><img alt="Python" src="https://img.shields.io/badge/Python-%3E%3D3.9-3776AB.svg"></a> <a href="https://registry.comfy.org"><img alt="Registry" src="https://img.shields.io/badge/Registry-odinsam--format--paths-6c5ce7.svg"></a> </p> <p> <a href="README.md">English</a> · <a href="README.zh-CN.md">中文</a> </p> <p> ComfyUI <b>multi-path formatter</b>: wire parts <code>a</code>–<code>z</code>, write one template per output (e.g. <code>{a}/{d}/{b}</code>), emit multiple <code>STRING</code> paths (often to Save Image <b>filename_prefix</b>). </p> <p> <b>Node:</b> <code>FormatPaths</code> / 多路径格式化 (OdinSam)<br> <b>Category:</b> <code>OdinSam/FormatPaths</code> · <b>Registry:</b> <code>odinsam-format-paths</code> </p> <p> <img src="docs/images/node.png" alt="Format Paths node" width="420"> </p> </div>

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