Nodes/comfyui_cv/CV Split Tuple
ComfyUI Node

CV Split Tuple

The reverse of 'CV Tuple': takes one composite value and emits its components separately, so a size or a point can drive plain INT/FLOAT inputs (a Math Expression, a crop, a loop bound). Components past the value's own length come out as 0.

By bmad4ever·Created 3 months ago·Updated 2 days ago· 0
CV Split Tuple
  • tuple
  • a
  • b
  • c
  • d
  • count
dtypeint
Categoryimage/CV/low-level

Inputs (2)

NameTypeDefaultDescription
tupleCV_TUPLE,BOUNDING_BOX0,0,0,0Composite value to split - wire it from 'CV Tuple', from any cv2 node's point / size output, or from a BOUNDING_BOX (a cv2 Rect: x, y, width, height).
dtypeCOMBOintOutput type: 'int' truncates (pixel indices), 'float' preserves fractions (subpixel).

Outputs (5)

NameTypeDescription
a*First component.
b*Second component.
c*Third component (0 if the value has only two).
d*Fourth component (0 if the value is shorter).
countINTHow many components the value actually carried.