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.
arkennemasis Shot Selector (run N of M)
- image
- image
◄shot_index0►
◄how_many24►
◄total_shots24►
◄seed0►
◄selectionfirst N in order►
Categoryarkennemasis/Utility
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| image | IMAGE | Lazy: only pulled when this shot is selected, so the upstream generator does not run otherwise. | |
| shot_index | INT | 00–9999 | This branch's slot number. Must be unique, 0-based. |
| how_many | INT | 240–9999 | How many of the branches to actually run. Wire one value into every copy. |
| total_shots | INT | 241–9999 | How many branches exist in total. |
| seed | INT | 00–18446744073709550000 | Only used by 'random from seed'. Same seed = same set. |
| selection | COMBO | first 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)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |