change display name to SLP List View

This commit is contained in:
hetima
2026-01-30 09:25:31 +09:00
parent efcbacb479
commit ceb20eb1e0
5 changed files with 27 additions and 23 deletions
+7 -5
View File
@@ -11,7 +11,7 @@
## Nodes
### Single Line Picker
### SLP List View
入力されたテキストを個々の行のリストとして表示します。選択された行を出力します。
@@ -47,13 +47,13 @@ last value
![screecshot02](./assets/slp02.jpg)
csv, tsvやテキストファイル群から整形済みテキストを生成する[Pythonスクリプトが付属しています](./tools/README-ja.md)。出力テキストをSingle Line Pickerで読める形式にすると、二重構造のリストを再現することができます。Single Line Pickerを2つ繋げて最初のノードに適用することで、カテゴリーを選んでから項目を選ぶようなことができるようになります。付属スクリプトで簡単に作ることができます。
csv, tsvやテキストファイル群から整形済みテキストを生成する[Pythonスクリプトが付属しています](./tools/README-ja.md)。出力テキストをSLP List Viewで読める形式にすると、二重構造のリストを再現することができます。SLP List Viewを2つ繋げて最初のノードに適用することで、カテゴリーを選んでから項目を選ぶようなことができるようになります。付属スクリプトで簡単に作ることができます。
![screecshot05](./assets/slp05.jpg)
### SLP Lora Loader / SLP Lora Loader (Model Only)
デフォルトのローダーとほぼ同じです。LoRAファイルの指定部分がコンボボックスではなくテキストになっているのでSingle Line Pickerを直接繋げることができます。
デフォルトのローダーとほぼ同じです。LoRAファイルの指定部分がコンボボックスではなくテキストになっているのでSLP List Viewを直接繋げることができます。
出力パラメータ`stem`を持っています。LoRAファイルの拡張子を除いたファイル名を出力します。次節のSLP Filename Prefixで利用できます。
@@ -71,10 +71,12 @@ csv, tsvやテキストファイル群から整形済みテキストを生成す
## Changelog
- ノード表示名を `SLP List View` に変更
### 1.2.0
- `#section`モードを追加
- ヘルパースクリプト slp_buld_csv.py と slp_build_folder.py を追加
- Single Line Picker 同士の接続に対応
- ヘルパースクリプト `slp_buld_csv.py` と `slp_build_folder.py` を追加
- SLP List View 同士の接続に対応
### 1.1.0
+7 -5
View File
@@ -11,7 +11,7 @@ This is a custom node for ComfyUI that lets you select single line from lists of
## Nodes
### Single Line Picker
### SLP List View
Displays the input text as a list of individual lines. Outputs the selected line.
The displayed text is reflected by connecting the `text` input to an appropriate node that outputs multi-line text. During the first execution or when the text content changes, the selection state resets and nothing is output. Performing a partial execution from the toolbox that appears when selecting the node allows text to flow in without running the entire process. If the content is static, it's fine to disconnect after it has been loaded once.
@@ -47,12 +47,12 @@ last value
![screecshot02](./assets/slp02.jpg)
[Python scripts are included](./tools/README.md) that generates formatted text from CSV or text files. By formatting the output text into a Single Line Picker-readable format, you can recreate a nested list structure. By connecting two Single Line Pickers and applying them to the first node, you can enable functionality like selecting a category before choosing an item. This can be created using the included script.
[Python scripts are included](./tools/README.md) that generates formatted text from CSV or text files. By formatting the output text into a SLP List View-readable format, you can recreate a nested list structure. By connecting two SLP List Views and applying them to the first node, you can enable functionality like selecting a category before choosing an item. This can be created using the included script.
![screecshot05](./assets/slp05.jpg)
### SLP Lora Loader / SLP Lora Loader (Model Only)
It's almost identical to the default loader. Since the LoRA file selection part is text instead of a combo box so that connect a Single Line Picker directly.
It's almost identical to the default loader. Since the LoRA file selection part is text instead of a combo box so that connect a SLP List View directly.
It has an output parameter called `stem`. It outputs LoRA filename without file extension. Available in the next section's SLP Filename Prefix.
@@ -70,10 +70,12 @@ Placeholders can be created up to four: `$1`, `$2`, `$3`, and `$4`. Each is repl
## Changelog
- Change display name from `Single Line Picker` to `SLP List View`
### 1.2.0
- Added `#section` mode
- Added helper scripts: slp_buld_csv.py and slp_build_folder.py
- Supports connection between Single Line Pickers
- Added helper scripts: `slp_buld_csv.py` and `slp_build_folder.py`
- Supports connection between SLP List Views
### 1.1.0
- Added new custom node: SLP Filename Prefix
+1 -1
View File
@@ -2,7 +2,7 @@
class SLPSingleLinePicker:
NAME = "HetimaSingleLinePicker"
DISPLAY_NAME = "Single Line Picker"
DISPLAY_NAME = "SLP List View"
CATEGORY = "SingleLinePicker"
DESCRIPTION = "Select one line from the text list with a single click."
+6 -6
View File
@@ -4,12 +4,12 @@
</p>
# Tools
[Single Line Picker](https://github.com/hetima/ComfyUI-SingleLinePicker) の動作を補助するPythonスクリプトです。
[SLP List View](https://github.com/hetima/ComfyUI-SingleLinePicker) の動作を補助するPythonスクリプトです。
## slp_buld_csv.py
.csvや.tsvを読み込んで、Single Line Pickerで使える形式に変換したテキストを書き出します。
.csvや.tsvを読み込んで、SLP List Viewで使える形式に変換したテキストを書き出します。
```
python path/to/slp_build_folder.py path/to/file.csv
@@ -21,16 +21,16 @@ python path/to/slp_build_folder.py path/to/file.csv
python path/to/slp_build_folder.py path/to/folder
```
と実行すると、フォルダ内のすべての.csv、.tsvファイルをパースします。ファイル名を表示テキスト、前述の方法でパースした内容をbase64エンコードして出力されるテキストとして格納し、output.slp.txtの名前で保存します。`#section`形式の出力が`#section`形式となる二重の入れ子構造になっています。Single Line Pickerを2つ繋げて最初のノードに適用することで、カテゴリーを選んでから項目を選ぶようなことができるようになります。
と実行すると、フォルダ内のすべての.csv、.tsvファイルをパースします。ファイル名を表示テキスト、前述の方法でパースした内容をbase64エンコードして出力されるテキストとして格納し、output.slp.txtの名前で保存します。`#section`形式の出力が`#section`形式となる二重の入れ子構造になっています。SLP List Viewを2つ繋げて最初のノードに適用することで、カテゴリーを選んでから項目を選ぶようなことができるようになります。
![screenshot](../assets/slp04.jpg)
書き出されたテキストファイルをファイルを読み込むノードでSingle Line Pickerに繋げるか、ノード情報パネルのParametersの`source_text`に内容をペーストすることで内容を適用できます。
書き出されたテキストファイルをファイルを読み込むノードでSLP List Viewに繋げるか、ノード情報パネルのParametersの`source_text`に内容をペーストすることで内容を適用できます。
## slp_build_folder.py
フォルダを読み込んで、その中の.txtファイルをまとめて、Single Line Pickerで使える形式に変換したテキストを書き出します。
フォルダを読み込んで、その中の.txtファイルをまとめて、SLP List Viewで使える形式に変換したテキストを書き出します。
```
python path/to/slp_build_folder.py -d path/to/folder
@@ -44,4 +44,4 @@ python path/to/slp_build_folder.py -dd path/to/folder
`-dd`オプションを付けると、フォルダ内のすべてのサブフォルダに対して前述処理を行い、サブフォルダ名を表示テキスト、処理内容を出力されるテキストとして格納し、output.slp.txtの名前で保存します。入れ子構造になります。
書き出されたテキストファイルをファイルを読み込むノードでSingle Line Pickerに繋げるか、ノード情報パネルのParametersの`source_text`に内容をペーストすることで内容を適用できます。
書き出されたテキストファイルをファイルを読み込むノードでSLP List Viewに繋げるか、ノード情報パネルのParametersの`source_text`に内容をペーストすることで内容を適用できます。
+6 -6
View File
@@ -4,12 +4,12 @@
</p>
# Tools
These are Python scripts that assist the operation of the [Single Line Picker](https://github.com/hetima/ComfyUI-SingleLinePicker).
These are Python scripts that assist the operation of the [SLP List View](https://github.com/hetima/ComfyUI-SingleLinePicker).
## slp_buld_csv.py
It reads CSV or TSV files and exports text converted into a format usable with the Single Line Picker.
It reads CSV or TSV files and exports text converted into a format usable with the SLP List View.
```
python path/to/slp_build_folder.py path/to/file.csv
@@ -21,15 +21,15 @@ When executed, it parses .csv or .tsv with the first column as display text and
python path/to/slp_build_folder.py path/to/folder
```
When executed, it parses all .csv and .tsv files within the folder. The filename is displayed as text, and the content parsed using the above method is stored as text output after base64 encoding, then saved as output.slp.txt. The output format is structured as a two-level nested hierarchy. By connecting two Single Line Pickers and applying them to the first node, you can enable functionality like selecting a category before choosing an item.
When executed, it parses all .csv and .tsv files within the folder. The filename is displayed as text, and the content parsed using the above method is stored as text output after base64 encoding, then saved as output.slp.txt. The output format is structured as a two-level nested hierarchy. By connecting two SLP List Views and applying them to the first node, you can enable functionality like selecting a category before choosing an item.
![screenshot](../assets/slp04.jpg)
To apply this result, connect the exported text file to the Single Line Picker using a node that reads file contents, or paste the contents into `source_text` in the parameters of node info panel.
To apply this result, connect the exported text file to the SLP List View using a node that reads file contents, or paste the contents into `source_text` in the parameters of node info panel.
## slp_build_folder.py
Load the folder, gather all the .txt files within it, and output the text converted into a format usable by the Single Line Picker.
Load the folder, gather all the .txt files within it, and output the text converted into a format usable by the SLP List View.
```
python path/to/slp_build_folder.py -d path/to/folder
@@ -43,4 +43,4 @@ python path/to/slp_build_folder.py -dd path/to/folder
When the `-dd` option is specified, the above processing is performed on all subfolders within the folder. Subfolder names are stored as display text, and processing results are stored as output text, saved under the filename `output.slp.txt`. This creates a nested structure.
To apply this result, connect the exported text file to the Single Line Picker using a node that reads file contents, or paste the contents into `source_text` in the parameters of node info panel.
To apply this result, connect the exported text file to the SLP List View using a node that reads file contents, or paste the contents into `source_text` in the parameters of node info panel.