Visit ComfyUI Online for ready-to-use ComfyUI environment
Retrieve specific mask from list based on index, supports positive/negative indexing for efficient manipulation.
The FromListGetMasks
node is designed to retrieve a specific mask from a list of masks based on a given index. This node is particularly useful when working with multiple masks and you need to access a specific one for further processing or manipulation. It supports both positive and negative indexing, allowing you to access elements from the start or end of the list, respectively. This flexibility makes it a powerful tool for AI artists who need to manage and manipulate multiple masks efficiently within their workflows.
The list
parameter expects a list of masks from which a specific mask will be retrieved. This input is mandatory and must be provided for the node to function. The list should contain valid mask data that you want to access.
The index
parameter specifies the position of the mask in the list that you want to retrieve. It accepts integer values and supports both positive and negative indexing. Positive values start from 0 (the first element), while negative values start from -1 (the last element). The default value is 0, meaning the first mask in the list will be retrieved by default. The minimum value is -2147483648, and the maximum value is 2147483647.
The output parameter MASK
returns the mask located at the specified index in the input list. This output can then be used for further processing or manipulation in your workflow. The retrieved mask is returned as a single element, making it easy to integrate with other nodes that require a mask input.
index
parameter is within the valid range of the list to avoid errors.index
is outside the valid range of the list.index
parameter is within the bounds of the list. You can use the modulo operation to wrap around the index if needed.list
parameter is not a valid list of masks.list
parameter is a valid list containing mask data.index
parameter is not a valid integer.index
parameter is an integer value. If using a variable, make sure it is properly converted to an integer before passing it to the node.© Copyright 2024 RunComfy. All Rights Reserved.