Nodes/ComfyUI-rogala/AdvancedStyleSelector
ComfyUI Node

AdvancedStyleSelector

## Advanced Style Selector Applies visual styles to your prompt and outputs **CONDITIONING** directly — no extra CLIPTextEncode node needed. --- ### Inputs | Pin | Type | Description | |------|------|-------------| | `clip` | CLIP | Connect from Load Checkpoint | ### Outputs | Pin | Type | Description | |-----|------|-------------| | `positive` | CONDITIONING | Encoded positive prompt with styles applied | | `negative` | CONDITIONING | Encoded negative prompt (or ZeroOut) | | `style_name` | STRING | Active style names joined by `-` for file naming | --- ### Style prompt logic - If style prompt contains `{prompt}` → your text replaces `{prompt}` - Otherwise → `your text, style keywords` ### Negative conditioning - **use_negative ON** → negative text encoded normally via CLIP - **use_negative OFF** → outputs ConditioningZeroOut (recommended for Flux, SD3) ### Modes - **Manual** → select up to 6 styles by clicking thumbnails in the gallery - **Iterator** → cycles through all styles in checked categories one per run, stops automatically after the last style ### name_timestamp When enabled, appends a timestamp to `style_name` output: `abstract_20250424_143022` — guarantees unique filenames when connected to Save Image. ### save_prompt When enabled, saves positive and negative prompts to a JSON file in `ComfyUI/output/prompts/` after each run. Useful for keeping a record of which prompts generated which images. ### Favorites Click ⭐ on any thumbnail to add it to Favorites. Favorites are saved to `config/favorites_styles.json` and appear as a separate category at the top of the category list. Click ⭐ again to remove. ### My Styles Save your own styles directly from the node. Enter a name in the `Style name` field and click `Save Style` — the current positive and negative prompts are saved to `config/my_styles.json` as a new style in the `My Styles` category. The category appears first in the list automatically. Naming rules: letters, digits and underscores only. Spaces and special characters are replaced automatically. Example: `my_cinematic` not `my cinematic`. To add a thumbnail: place a `.jpg` file named after your style in `thumbnails/my_style/` and click `Reload Styles`. ### Model thumbnails Each style has a default thumbnail in `thumbnails/styles/`. You can add per-model thumbnails by creating a subfolder named after your model: thumbnails/styles/FLUX_1/ thumbnails/styles/SDXL_base/ thumbnails/styles/WAN_2_2/ Folder naming rules: use only letters, digits and underscores. No spaces, hyphens or dots — these cause issues across different operating systems. Example: `FLUX_1` not `FLUX-1` or `FLUX.1`. When a model folder is selected, thumbnails are loaded from that folder. If a style has no thumbnail there, it falls back to the base folder. --- Styles are loaded from `config/styles.json`. Custom styles are saved to `config/my_styles.json`. Favorites are saved to `config/favorites_styles.json`. Prompts are saved to `output/prompts/` when save_prompt is enabled. Thumbnails are loaded from `thumbnails/styles/`. Model preset thumbnails from `thumbnails/{model_name}/`. Custom style thumbnails from `thumbnails/my_style/`.

By Rogala·Created 5 months ago·Updated 4 months ago· 19
AdvancedStyleSelector
  • clip
  • positive
  • negative
  • style_name
positive_text
negative_text
use_negativetrue
modeManual
style_1
style_2
style_3
style_4
style_5
style_6
iterator_categories
iterator_seed0
append_counterfalse
save_promptfalse
thumbnail_preset
Categoryrogala/Prompting

Inputs (16)

NameTypeDefaultDescription
clipCLIP
positive_textSTRINGYour positive prompt. Styles will be applied on top.
negative_textSTRINGYour negative prompt. Hidden when use_negative is OFF.
use_negativeBOOLEANtrueON: encode negative normally. OFF: output ConditioningZeroOut (for Flux/SD3).
modeCOMBOManual2 options: Manual, Iterator
style_1STRINGSelected style slot 1
style_2STRINGSelected style slot 2
style_3STRINGSelected style slot 3
style_4STRINGSelected style slot 4
style_5STRINGSelected style slot 5
style_6STRINGSelected style slot 6
iterator_categoriesSTRINGComma-separated categories to iterate. Empty = all.
iterator_seedINT00–4294967295Seed for shuffling iterator order (0 = alphabetical).
append_counterBOOLEANfalseAppend a timestamp to style_name output for unique filenames (e.g. abstract_20250424_143022).
save_promptBOOLEANfalseSave positive and negative prompts to a JSON file in output/prompts/.
thumbnail_presetSTRINGActive model thumbnail preset folder name.

Outputs (3)

NameTypeDescription
positiveCONDITIONING
negativeCONDITIONING
style_nameSTRING