Select Images

SelectImages

Image Index Selection Node Supported Index Formats: - Single Index: "5" (Selects the 6th image, counting from 0) - Multiple Indexes: "1,3,5" (Selects the 2nd, 4th, and 6th images) - Range Selection: "3-10" (Selects the 4th to 11th images) - Range with Step: "0-10:2" (Selects the 1st, 3rd, 5th, 7th, 9th, and 11th images) - Mixed Format: "1,3-5,8,10-15" (Selects the 1st, 3rd, 4th, 5th, 8th, 10th, 11th, 12th, 13th, 14th, and 15th images) - Negative Index: "-1" (Selects the last image), "-3--1" (Selects the last 3 images) Parameter Description: - err_if_missing: Whether to report an error if the index is out of range - err_if_empty: Whether to report an error if no images are selected

Pack: ComfyUI_SwiftCut

custom_nodes.ComfyUI_SwiftCut

Inputs (4)

NameTypeRequired
imageIMAGErequired
indexesSTRINGrequired
err_if_missingBOOLEANrequired
err_if_emptyBOOLEANrequired

Outputs (1)

NameType
selected_imagesIMAGE