Update README: add Registry installation, formatting
This commit is contained in:
@@ -12,7 +12,7 @@ Text processing utilities for ComfyUI by [masslevel](https://github.com/massleve
|
||||
|
||||
### Variable Text Processor (masslevel)
|
||||
|
||||
Processes a multiline text template by replacing `{variable_name}` placeholders with dynamically wired input values. Pins can be added, removed, and renamed at any time — the pin name is the variable name.
|
||||
Processes a multiline text template by replacing `{variable_name}` placeholders with dynamically wired input values. Pins can be added, removed, and renamed at any time. The pin name is the variable name.
|
||||
|
||||
**Category:** `masslevel/Text`
|
||||
|
||||
@@ -20,6 +20,10 @@ Processes a multiline text template by replacing `{variable_name}` placeholders
|
||||
|
||||
## Installation
|
||||
|
||||
**ComfyUI Manager / Comfy Registry:**
|
||||
Search for `masslevel` or `ComfyUI-masslevel-TextProcessing` in the Custom Node Manager and install from there.
|
||||
|
||||
**Manual:**
|
||||
Clone or download this repository into your `ComfyUI/custom_nodes/` directory:
|
||||
|
||||
```bash
|
||||
@@ -31,7 +35,7 @@ Restart ComfyUI.
|
||||
|
||||
---
|
||||
|
||||
## Variable Text Processor — Usage
|
||||
## Variable Text Processor: Usage
|
||||
|
||||
### Basic concept
|
||||
|
||||
@@ -49,29 +53,29 @@ Wired:
|
||||
video_height → 1080
|
||||
video_fps → 25
|
||||
model_name → "model.safetensors"
|
||||
sampler_cfg → 25.0
|
||||
sampler_cfg → 1.0
|
||||
|
||||
Output:
|
||||
resolution: 1920x1080
|
||||
fps: 25
|
||||
model: model.safetensors
|
||||
cfg: 25.0
|
||||
cfg: 1.0
|
||||
```
|
||||
|
||||
### Adding variables
|
||||
|
||||
Click the **+ Add Variable** button on the node body. A prompt will ask for a name — use letters, numbers, and underscores only (e.g. `fps`, `model_name`, `subject`). The name becomes the `{placeholder}` token in your template.
|
||||
Click the **+ Add Variable** button on the node body. A prompt will ask for a name. Use letters, numbers, and underscores only (e.g. `fps`, `model_name`, `subject`). The name becomes the `{placeholder}` token in your template.
|
||||
|
||||
### Removing variables
|
||||
|
||||
Right-click the node body → **Remove Variable Pin** → select the variable to remove. Any connected wire is cleanly disconnected first.
|
||||
Right-click the node body, select **Remove Variable Pin**, and choose the variable to remove. Any connected wire is cleanly disconnected first.
|
||||
|
||||
### Renaming variables
|
||||
|
||||
Two methods — both keep the connected wire in place:
|
||||
Two methods, both keep the connected wire in place:
|
||||
|
||||
- **Context menu:** Right-click the node body → **Rename Variable Pin** → select the variable and enter a new name.
|
||||
- **Native rename:** Right-click the connection point on the pin → **Rename Slot** → enter a new name.
|
||||
- **Context menu:** Right-click the node body, select **Rename Variable Pin**, choose the variable and enter a new name.
|
||||
- **Native rename:** Right-click the connection point on the pin, select **Rename Slot**, and enter a new name.
|
||||
|
||||
### Inputs
|
||||
|
||||
@@ -89,7 +93,7 @@ Two methods — both keep the connected wire in place:
|
||||
### Notes
|
||||
|
||||
- Variable names and their order persist across workflow save and reload.
|
||||
- Unresolved placeholders are passed through unchanged — they will not error.
|
||||
- Unresolved placeholders are passed through unchanged and will not error.
|
||||
- The template field itself can be wired from an external multiline text node.
|
||||
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user