Nodes/ComfyUI-Styler-Pipeline/Styler Pipeline (By Index)
ComfyUI Node

Styler Pipeline (By Index)

Style sweeps without ever touching the graph

By andreszs·Created 6 months ago·Updated 13 days ago· 8
Styler Pipeline (By Index)
  • positive
  • negative
  • clip
  • positive
  • negative
  • style
category
style_index0
strength1.00
redundancy1
prepend_timestampfalse

The fastest way to burn an afternoon is clicking a style dropdown, rendering, saving, clicking the next style, rendering again. Styler Pipeline (By Index) exists to automate exactly that grind: you pick a category once, feed it an integer, and it applies a different style from that category on every run. Render, queue, render, queue - the style advances all by itself. It's the node you want when you're testing "which of these 30 moods actually lands" on a character.

How it works

You give it a category, and it looks up the styles in that category in the order they're loaded from the JSON files. A style_index INT picks which one: the node takes style_index % number_of_styles, so the index wraps around when it runs past the end. Feed it a plain incrementing counter and each render walks forward through the category; leave it at 0 and it stays stuck on the first style, which is useful when you're wiring things up.

The style text gets encoded with your clip and injected into the positive and negative conditioning exactly like the other stylers - strength (0–3) and redundancy (1–4) do the same job here. If you don't connect clip, it errors out loud, which is at least easier to debug than a silent pass-through.

The inputs and outputs that matter

  • positive / negative (CONDITIONING) - your encoded prompt pair.
  • category - the category to sweep through.
  • style_index (INT, default 0) - which style in the category; wraps via modulo.
  • strength, redundancy - the usual dials.
  • prepend_timestamp (BOOLEAN) - prefixes the style output with the render time.
  • clip (CLIP, optional but effectively required).

Outputs are positive, negative, and style - a STRING with the sanitized style name (spaces_underscored, slashes turned into dashes). That string is the whole point of the node, because the applied style can't be recovered from the workflow metadata afterward. The pack's own README is blunt about this: the iterated index and style name don't persist back into the saved workflow. So route that style output into your filename, or you'll end up with thirty renders you can't tell apart.

Wiring it

The node was built to sit next to the pack's Index Iterator:

# nothing to download - same pack as the other Styler Pipeline nodes
cd ComfyUI/custom_nodes
git clone https://github.com/andreszs/ComfyUI-Styler-Pipeline

Restart ComfyUI, add Styler Pipeline (By Index), add Index Iterator, feed the iterator's index into style_index. Every queue bumps the counter by one, so you sweep the category one style at a time. Set prepend_timestamp when you're generating in bursts and want unique filenames.

The honest caveats

First, ordering: the sweep follows the order styles are loaded from the JSON, which is not necessarily alphabetical - if you need a specific order, that's controlled by your style files, not by this node. Second, it applies one style, period. If a render looks off, remember the styler layers onto your existing conditioning rather than replacing it. And third, strength past roughly 1.3 starts degrading quality as the style effectively shouts over the prompt - nudge it, don't crank it.

CategoryStyler Pipeline/Stylers

Inputs (8)

NameTypeDefaultDescription
positiveCONDITIONING
negativeCONDITIONING
categoryCOMBO24 options: aesthetic, all_in_one, anime, atmosphere, camera_angles, clothing, +18
style_indexINT00–1000000
strengthFLOAT1.000–3
redundancyINT11–4
prepend_timestampBOOLEANfalse
clipoptCLIP

Outputs (3)

NameTypeDescription
positiveCONDITIONING
negativeCONDITIONING
styleSTRING