Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates selective replacement of image list segments with single or multiple images, offering flexibility and control.
The ImageListReplace_
node is designed to facilitate the replacement of specific segments within a list of images. This node allows you to specify a range of indices within the image list and replace the images in that range with either a single image or a new list of images. This functionality is particularly useful for tasks that require selective modification of image sequences, such as video frame editing or batch image processing. By providing options to invert the selection and handle both single and multiple image replacements, the ImageListReplace_
node offers flexibility and control over the image manipulation process.
This parameter accepts a list of images that you want to process. The images are the primary input on which the replacement operations will be performed.
This integer parameter specifies the starting index of the range within the image list where the replacement should begin. The default value is 0, and it must be a non-negative integer. Adjusting this value determines the starting point of the replacement operation.
This integer parameter defines the ending index of the range within the image list where the replacement should end. The default value is 0, and it must be a non-negative integer. This value, in conjunction with the start_index
, determines the span of the images to be replaced.
This boolean parameter allows you to invert the selection range specified by start_index
and end_index
. If set to True
, the images outside the specified range will be selected for replacement. The default value is False
.
This optional parameter accepts a single image that will be used to replace the images within the specified range. If provided, this image will be repeated to fill the entire range.
This optional parameter accepts a list of images that will be used to replace the images within the specified range. If provided, this list will be used directly for the replacement, offering more flexibility compared to a single image replacement.
This output parameter returns the modified list of images after the replacement operation has been performed. It reflects the changes made based on the specified input parameters.
This output parameter provides the subset of images that were selected and replaced during the operation. It allows you to review or further process the images that were specifically targeted for replacement.
start_index
and end_index
to define the range and provide the image_replace
or images_replace
parameter.invert
parameter to target images outside the specified range for replacement, which can be useful for excluding certain frames in a sequence.image_replace
parameter is provided. For more complex replacements, use the images_replace
parameter to supply a list of new images.start_index
or end_index
exceeds the bounds of the image list.start_index
and end_index
are within the valid range of the image list indices.image_replace
nor images_replace
is provided.image_replace
or images_replace
) to specify the replacement images.© Copyright 2024 RunComfy. All Rights Reserved.