Nodes/comfyui-arkennemasis/arkennemasis Shot Selector (run N of M)
ComfyUI Node

arkennemasis Shot Selector (run N of M)

Run only N of M expensive branches - either the first N in order or a random sample from a seed. Put one after each generator, give them all the same how_many/seed/selection and a unique shot_index. Unselected branches never execute, so a paid API node upstream is never called.

By Hishamahmer·Created about a month ago·Updated 9 days ago· 5
arkennemasis Shot Selector (run N of M)
  • image
  • image
shot_index0
how_many24
total_shots24
seed0
selectionfirst N in order
Categoryarkennemasis/Utility

Inputs (6)

NameTypeDefaultDescription
imageIMAGELazy: only pulled when this shot is selected, so the upstream generator does not run otherwise.
shot_indexINT00–9999This branch's slot number. Must be unique, 0-based.
how_manyINT240–9999How many of the branches to actually run. Wire one value into every copy.
total_shotsINT241–9999How many branches exist in total.
seedINT00–18446744073709550000Only used by 'random from seed'. Same seed = same set.
selectionCOMBOfirst N in order'first N in order' runs slots 1..N - use it when the first slots are the ones you are working on. 'random from seed' takes an unbiased sample of the whole set.

Outputs (1)

NameTypeDescription
imageIMAGE