An open API service indexing awesome lists of open source software.

https://github.com/Taremin/comfyui-string-tools


https://github.com/Taremin/comfyui-string-tools

Last synced: 4 months ago
JSON representation

Awesome Lists containing this project

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)