Nodes/Spreadsheet2Video/Spreadsheet2Video Sequence
ComfyUI Node

Spreadsheet2Video Sequence

One node, one column of numbers, a whole sweep of seeds

By niknah·Created 4 months ago·Updated 15 days ago· 9
Spreadsheet2Video Sequence
    • STRING
    start0.00
    end10.00
    step1.00

    Spreadsheet2Video Sequence is the pack's tiny utility for making a column of numbers. Feed it a start, an end, and a step, and it outputs a one-column CSV - header sequence, then every value from start up to (but not including) end, stepping the way you asked. The node's own description gives the intended use: "Make a sequence of numbers. Use with Spreadsheet2Video Multiply Spreadsheet to add to another spreadsheet."

    Why this is worth having

    The Spreadsheet2Video loop is only as good as the columns you give it, and hand-typing "1, 2, 3, 4, ..." into a spreadsheet is exactly the kind of busywork a parameter sweep is supposed to eliminate. Sequence gives you a ready-made column you can multiply into a base spreadsheet. The classic move: build a seeds column from 0 to 9, multiply it into your prompt spreadsheet with Spreadsheet2Video Multiply Spreadsheet, and suddenly every prompt runs at ten seeds - without ever touching the seed widgets, which as the README warns all share one "randomize" value per run anyway.

    It's not just seeds, of course. Any numeric input that varies per row - camera pan amounts, denoise strengths, frame counts, LoRA weights - can be generated this way and multiplied in.

    The inputs that matter

    • start (default 0) - where the sequence begins.
    • end (default 10) - the exclusive upper bound. The tooltip says it plainly: "End 'before' number. Does not include this number." So start 0, end 10 gives you 0 through 9.
    • step (default 1) - the increment, and it can be negative to count down.

    The output is a single STRING - the CSV column with its sequence header.

    The rules it enforces (and the traps)

    The node is picky about direction, and it fails loudly rather than silently: step of zero throws an error, a positive step requires start < end, and a negative step requires start > end. That's actually a kindness - a silently-truncated range would be worse than a clear exception in the console.

    One thing to remember: because end is exclusive, start: 0, end: 10 produces ten numbers, not eleven. If you're computing how many rows you'll get for a sweep, subtract start from end and divide by step, and don't add one.

    How to use it

    Keep it simple: set the range, connect the STRING output into the spreadsheet_to_add input of a Spreadsheet2Video Multiply Spreadsheet node, multiply it into your content sheet, and feed the result to the main Spreadsheet2Video node. The sequence header (sequence) just becomes another column name - you're free to connect it to whatever input you like, seed being the obvious first choice.

    It's a five-minute node with no dependencies and no models, but it's one of those pieces that makes the pack's data-driven loops actually pleasant to drive instead of a typing chore.

    CategorySpreadsheet2Video

    Inputs (3)

    NameTypeDefaultDescription
    startFLOAT0.00-9223372036854776000–9223372036854776000Start number
    endFLOAT10.00-9223372036854776000–9223372036854776000End "before" number. Does not include this number.
    stepFLOAT1.00-9223372036854776000–9223372036854776000Number to increase/decrease each step

    Outputs (1)

    NameTypeDescription
    STRINGSTRING