ComfyTV/Composegenerated

Video Picker(VideoPickerStage)

The Video Picker node holds an accumulated pool of video clips and outputs a single selected clip as a COMFYTV_VIDEO.

Video Picker Stage

video
selected_index
1
pool
STRING
append_results
ComfyTV

Description

The Video Picker node holds an accumulated pool of video clips and outputs a single selected clip as a COMFYTV_VIDEO. It is designed to sit downstream of nodes that produce video results and to act as a persistent selection buffer: as new clips arrive they are appended to the pool (deduplicated by URL), and you then choose which one to send onward by clicking it in the UI.

Because the pool is stored in a widget and managed by the UI, entries survive graph regeneration and disconnect/reconnect of upstream nodes, so you can keep a growing library of candidate clips within a single workflow and pick between them without re-running the upstream chain each time.

Inputs

selected_index

  • Type: INT
  • Default: 1
  • Range: 1 to 999, step 1
  • Required: Yes

Which clip to extract, using 1-indexed numbering. This widget is normally hidden from direct editing: it is set automatically when you click a clip in the pool, and the clicked clip becomes the one passed to the output. Index 1 refers to the first item in the pool.

pool

  • Type: STRING
  • Default: "" (empty)
  • Required: Yes

The accumulated video pool, serialized as JSON. This field is managed by the UI rather than typed by hand. New clips coming from upstream are appended to it and deduplicated by URL, so the same video appearing twice does not create duplicate entries. Pool contents persist through regeneration, disconnection, and reconnection of upstream nodes. The Clear button in the UI empties the pool, resetting it to an empty state.

append_results

  • Type: BOOLEAN
  • Default: true
  • Required: Yes

Controls how new upstream results are merged into the pool.

  • On (true): each new batch of upstream results is appended to the pool and existing items are kept, so the pool grows over time.
  • Off (false): each new run replaces the pool with just the latest batch, discarding anything collected previously.

Outputs

COMFYTV_VIDEO

The single clip at the position indicated by selected_index, taken from the pool. If the index does not correspond to an available entry, no valid clip can be extracted, so make sure a clip has been collected and selected before relying on the output.

Usage Notes

  • Click a clip in the node's UI to select it. This sets the hidden selected_index widget to that clip's 1-indexed position and determines which clip is output.
  • Keep append_results enabled when you want to compare or revisit earlier results while iterating. Disable it for a "latest result only" workflow where each run should overwrite the previous selection pool.
  • Deduplication is by URL, so re-running an upstream node that returns the same video URL will not add a second copy to the pool.
  • The pool is resilient: regenerating the graph or temporarily disconnecting upstream nodes does not clear it. Use the Clear button when you want to start the pool over from scratch.
  • Because pool and selected_index are UI-managed, there is rarely a reason to edit them directly; doing so may put the pool JSON and the selection index out of sync.

Comments

Sign in with GitHub to join the discussion.

Loading comments…