Nodes/ComfyUI Layer Style/LayerUtility: Choice Text Preset
ComfyUI Node Runs on cloud

LayerUtility: Choice Text Preset

Choice Text Preset (Layer Style)

By chflame163·Created 3 years ago·Updated 5 days ago· 3,113
LayerUtility: Choice Text Preset
  • text_preset
  • title
  • content
â—„choice_titleâ–º
â—„random_choicefalseâ–º
â—„default0â–º
â—„seed0â–º

Choice Text Preset is a saved-snippet picker for text. Instead of pasting the same prompt fragment, style tag, or negative-prompt block into every workflow, you store it once as a named preset and pull it in here by title - or let the node roll a random one for you. If you find yourself keeping a scratch file of "good prompt chunks" and copy-pasting them, this is the node that turns that habit into part of the graph.

The way it works: the node reads from a list of text presets the pack manages, where each preset is a title paired with a block of content. You tell it which one you want (or ask for a random pick), and it returns both halves so you can use the label and the actual text separately.

The inputs, and which ones you'll actually touch:

  • text_preset - a special picker (LS_TEXT_PRESET) that surfaces your saved presets. This is the main control.
  • choice_title - select a specific preset by its title. Leave the random toggle off and this is how you pin one deliberately.
  • random_choice - flip this on and the node picks a preset at random instead of using the title.
  • seed - controls that random pick, so a given seed always lands on the same one (handy for reproducibility, or for cycling through the set).
  • default - an index fallback (0–10000) for when a selection can't be resolved.

Two outputs come back: title (the preset's name as a string) and content (the preset's text). Wire content into a CLIP Text Encode or into a prompt-combiner, and use title if you want to log or overlay which preset fired.

Honestly, this is a convenience/organization node more than a magic one - its value is entirely in how much you reuse prompt fragments. If you juggle a library of style presets, the random_choice + seed combo is genuinely nice for generating variety without rewriting prompts. If you don't, you probably don't need it.

Install comes with the whole ComfyUI Layer Style pack. ComfyUI Manager is the easy path: search "ComfyUI Layer Style," install, restart. Manual: cd ComfyUI/custom_nodes && git clone https://github.com/chflame163/ComfyUI_LayerStyle, then pip install -r requirements.txt in your ComfyUI environment and restart.

The catch specific to this node is that it only knows about presets that actually exist - the preset list is managed by the pack, and if you haven't populated it, the picker has nothing to offer. Exactly where and how those presets get stored isn't something the pack spells out clearly, so plan to fiddle with it the first time; add a preset or two and confirm they show up in the text_preset dropdown before you build a workflow around it.

And the pack-wide caveat applies here as everywhere: Layer Style is a big, dependency-heavy pack, and its most common failure is the whole thing refusing to import (a transformers version clash is the usual reason), which makes every node - this one included - disappear from your menu at once. If Choice Text Preset isn't in your list, the pack didn't load: reinstall it or hit "Try Fix" in the Manager, and reinstall the requirements into ComfyUI's real Python environment if it sticks.

Category😺dzNodes/LayerUtility/Data

Inputs (5)

NameTypeDefaultDescription
text_presetLS_TEXT_PRESET—
choice_titleSTRING—
random_choiceBOOLEANfalse—
defaultINT00–10000—
seedINT00–1000000000000000000—

Outputs (2)

NameTypeDescription
titleSTRING—
contentSTRING—