Akatz-Loop-Nodes
ComfyUI nodes related to execution inversion: For Loops, While Loops, Lazy Switches, Utility nodes. (Originally from https://github.com/BadCafeCode/execution-inversion-demo-comfyui)
Nodes (32)
The tiny node that turns a loop into a list
Grab Any Single Value Out of a Loop's Accumulation
How Many Iterations Did Your Loop Actually Run?
Pop the First Value Off a Loop's Accumulation
Edit one element of an accumulation without touching the rest
Pop the last value off an accumulation
The Bridge From Loop Internals to Normal ComfyUI Lists
Unsharp Mask, the Honest Way
Adaptive color correction that won't nuke already-vivid images
One Stop for the Two Post-Process Passes You Keep Re-Adding
See what's actually flowing through a wire
Stop a Branch Without Deleting It
The other half of ComfyUI's for loop — where the magic happens
The Invisible Counter That Runs Every For Loop in This Pack
ComfyUI for loops are real now — here's the open half
Grab one float from a list by index
Pull One Integer Out of an Int List by Index
Generate a Batch of Seeds (or Any Integer Sequence) in One Node
A ten-way if/else that only runs the branch you pick
Ten Inputs, One Output, Chosen by an Index — Without Computing the Losers
Mask-based image blending that skips the work it doesn't need
A boolean switch that doesn't execute the losing branch
Dump a regular list into the accumulation machinery
Turn Ten Loose Values Into One List
Exact sigma ladders and one-shot noise injection for custom sampling
A sampler as a wire, with a text-override escape hatch
Pick a scheduler on a wire — or type one that isn't in the list
Noise that morphs between seeds instead of snapping
Preview Every Loop Iteration Without the Node Explosion
Feed a String Into a Dropdown That Refuses Strings
The Loop Bottom That Re-Runs Your Graph Until You Say Stop
The Top of the Loop That ComfyUI Says You Can't Have
Akatz Loop Nodes for ComfyUI
https://github.com/user-attachments/assets/fde8c0d5-180c-47fe-ba4a-5b1aeb29be66
Custom nodes for loops, flow control, lazy switches, image processing, and latent manipulation.
Node Categories
Flow Control
- WhileLoopOpen/Close - While loop with condition checking
- ForLoopOpen/Close - For loop with iteration counter
- ExecutionBlocker - Conditionally block execution
Logic (Lazy Nodes)
- LazySwitch - Switch between inputs based on condition
- LazyIndexSwitch - Switch between multiple inputs by index
- LazyMixImages - Blend images based on condition
- LazyConditional - Conditional value selection
Accumulation & Lists
- AccumulateNode - Accumulate values across iterations
- AccumulationHead/Tail - Get first/last from accumulation
- AccumulationToList/ListToAccumulation - Convert between types
- AccumulationGetLength/GetItem/SetItem - Manipulation utilities
- MakeListNode - Create lists from values
- GetFloatFromList/GetIntFromList - Extract values
- IntegerListGeneratorNode - Generate integer sequences
Utility
- SamplerSelector - Select samplers with override
- SchedulerSelector - Select schedulers with override
- StringToCombo - Convert strings to combo type
- DebugPrint - Debug output
Image
- ColorCorrection - Adaptive saturation and white balance
- AdaptiveSharpening - Edge-aware sharpening
- ColorCorrectionAndSharpening - Combined processor
- SmartLoopPreviewImage - Preview with loop iteration accumulation
Latent
- SeedInterpNoise - Interpolated noise with SLERP/LERP
- PrepareLatentDenoise - Prepare latents for denoising
Credits
Based on execution inversion concepts from https://github.com/BadCafeCode/execution-inversion-demo-comfyui