ComfyUI Node

PyList: Slice

Slice a PyList with Python-style start:end semantics and keep it as a PyList output.

By godmt·Created 2 years ago·Updated 2 months ago· 16
PyList: Slice
  • PYLIST
  • PYLIST
start0
end0
Categorylist_utils

Inputs (3)

NameTypeDefaultDescription
PYLISTPYLISTConnect the PyList to slice.
startINT0-9007199254740992–9007199254740992Slice start index, matching Python list[start:end].
endINT0-9007199254740992–9007199254740992Slice end index. The item at this index is not included.

Outputs (1)

NameTypeDescription
PYLISTPYLISTThe sliced PyList.