Nodes/ComfyUI-BFSNodes/BFS Frame Loop Start
ComfyUI Node

BFS Frame Loop Start

Hands out one frame per loop iteration; pair it with BFS Frame Loop End.

By alisson-anjos·Created 8 months ago·Updated about 18 hours ago· 137
BFS Frame Loop Start
  • images
  • masks
  • loop_state
  • image
  • mask
  • index
  • count
  • loop_state
CategoryBFS/Loop

Inputs (3)

NameTypeDefaultDescription
imagesIMAGEThe frames to process one by one.
masksoptMASKOne mask per frame (optional), handed out with its frame.
loop_stateoptBFS_FRAME_LOOPSet by Frame Loop End; leave unconnected.

Outputs (5)

NameTypeDescription
imageIMAGEThe current frame.
maskMASKIts mask (zeros when no masks are given).
indexINTIndex of the current frame (0-based).
countINTHow many frames the loop runs.
loop_stateBFS_FRAME_LOOPConnect to BFS Frame Loop End.