Fix loop skip row indexing

This commit is contained in:
2026-06-24 22:16:50 +02:00
parent a1964e6f92
commit f334506a43
2 changed files with 31 additions and 8 deletions
+6 -5
View File
@@ -92,17 +92,18 @@ pattern, but add a dedicated collector output for building a result sequence.
Basic loop wiring:
1. Connect `For Loop Start.flow` to `For Loop End.flow`.
2. Use `For Loop Start.index` inside the loop for seed/index changes.
2. Use `For Loop Start.index` inside the loop for row/seed/index changes.
3. Connect the per-iteration output you want to keep, such as an image, latent,
prompt, or metadata string, to `For Loop End.collect_value`.
4. Optionally connect `For Loop Start.collected` to `For Loop End.collected`.
If omitted, the end node uses the start collector internally.
5. After the loop finishes, use `For Loop End.collected` as the combined output.
`For Loop Start.skip` skips the first N iterations while keeping the index
stable. For example, `total=10` and `skip=1` runs indexes `1..9`; `skip=5` runs
indexes `5..9`. This is useful when you want to resume a loop without changing
index-derived seeds or row numbers.
`For Loop Start.index` is 1-based so it can be wired directly into prompt-builder
`row_number` inputs. `For Loop Start.skip` skips the first N iterations while
keeping the remaining row numbers stable. For example, `total=10` and `skip=1`
runs indexes `2..10`; `skip=5` runs indexes `6..10`. This is useful when you
want to resume a loop without changing index-derived seeds or row numbers.
`collection_mode` controls how values are stored: