https://github.com/Taremin/comfyui-string-tools
https://github.com/Taremin/comfyui-string-tools
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/Taremin/comfyui-string-tools
- Owner: Taremin
- License: mit
- Created: 2024-01-18T07:59:37.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-26T13:22:39.000Z (10 months ago)
- Last Synced: 2025-02-26T14:29:21.948Z (10 months ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- awesome-comfyui - **ComfyUI String Tools**
- awesome-comfyui - **ComfyUI String Tools**
README
# ComfyUI String Tools
これは [ComfyUI](https://github.com/comfyanonymous/ComfyUI) 用のカスタムノードです。
単純な文字列ノードである `StringToolsString` ノードと複数行の文字列ノードである `StringToolsText`、
複数のテキストを結合する `StringToolsConcat` ノードと、複数のテキストからランダムにひとつを選択する `StringToolsRandomChoice` ノードを提供します。
## なぜ単純なテキストノードをこのカスタムノードで提供しているのか
`StringToolsConcat` ノードと `StringToolsRandomChoice` ノードは文字列を受け付けますが、現状 `PrimitiveNode` は受け付けられません。
そこで単純な文字列ノードである `StringToolsString` と `StringToolsText` ノードを提供しています。
## 機能
### StringToolsConcat
`separator` で `text_*` を結合します。
これらの入力はWidgetに変更することができません。
### StringToolsRandomChoice
`seed` で `text_*` の中からひとつ選択します。
これらの入力はWidgetに変更することができません。
### StringToolsBalancedChoice
`seed` で `text_*` の中からひとつ選択します。
これらの入力はWidgetに変更することができません。
`StringToolsRandomChoice` との違いは重み付けにあります。
`StringToolsBalancedChoice` の入力のどこかに `StringToolsRandomChoice` か `StringToolsBalancedChoice` があった場合、その有効な入力数に応じて重み付けを行い、有効な入力数が多いほど選択されやすくなります。
## ライセンス
[MIT](./LICENSE)