Visit ComfyUI Online for ready-to-use ComfyUI environment
Merge multiple mask sequences into a single cohesive sequence with control over specific segments and inversion option for precise modifications.
The MaskListMerge_ node is designed to facilitate the merging of multiple mask sequences into a single cohesive mask sequence. This node is particularly useful in video editing and compositing tasks where you need to replace or invert specific segments of a mask sequence. By specifying a range of indices, you can control which parts of the mask sequence are affected, allowing for precise and targeted modifications. The node also offers an option to invert the selection, providing flexibility in how the masks are merged. This functionality is essential for creating complex visual effects and ensuring that the final output meets your artistic vision.
This parameter accepts a list of masks that you want to merge. Each mask in the list represents a frame or a segment of the video. The masks are processed based on the specified indices and the invert
option to produce the final merged mask sequence.
This parameter specifies the mask that will replace the original masks within the specified index range. If the invert
option is set to False
, this mask will be used to replace the masks in the specified range. If invert
is True
, this mask will replace the masks outside the specified range.
This integer parameter defines the starting index of the range within which the masks will be replaced. The default value is 0, and it must be a non-negative integer. This parameter allows you to control the beginning of the segment that will be affected by the mask replacement.
This integer parameter defines the ending index of the range within which the masks will be replaced. The default value is 0, and it must be a non-negative integer. This parameter allows you to control the end of the segment that will be affected by the mask replacement.
This boolean parameter determines whether the mask replacement should be inverted. If set to True
, the masks outside the specified index range will be replaced by the mask_replace
mask. If set to False
, the masks within the specified index range will be replaced. The default value is False
.
The output is a list of masks that have been merged according to the specified parameters. This list represents the final mask sequence, with the specified segments replaced or inverted as per the input settings. The output can be used in subsequent nodes for further processing or directly in your video editing workflow.
start_index
and end_index
to define the range and provide the mask_replace
mask.invert
option to replace masks outside the specified range, which can be useful for creating effects that apply to the entire sequence except for a specific segment.start_index
and end_index
are within the bounds of your mask list to avoid unexpected results.start_index
or end_index
is outside the bounds of the mask list.start_index
and end_index
are within the valid range of indices for your mask list.None
.None
.start_index
or end_index
is not a valid integer.start_index
and end_index
are valid integers.© Copyright 2024 RunComfy. All Rights Reserved.