ComfyUI > Nodes > InsertAnything-ComfyUI-official > InsertAnything - Mask Option

ComfyUI Node: InsertAnything - Mask Option

Class Name

MaskOption

Category
None
Author
mo230761 (Account age: 1635days)
Extension
InsertAnything-ComfyUI-official
Latest Updated
2025-07-16
Github Stars
0.03K

How to Install InsertAnything-ComfyUI-official

Install this extension via the ComfyUI Manager by searching for InsertAnything-ComfyUI-official
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter InsertAnything-ComfyUI-official in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

InsertAnything - Mask Option Description

The `MaskOption` node allows seamless switching between sketch and uploaded mask inputs.

InsertAnything - Mask Option:

The MaskOption node is designed to provide flexibility in selecting and utilizing different mask inputs within your AI art projects. This node allows you to choose between two primary sources of mask data: a sketch or an uploaded mask. By offering this choice, the node enables you to seamlessly integrate hand-drawn sketches or pre-existing mask files into your workflow, enhancing the creative possibilities and control over the masking process. The main goal of the MaskOption node is to streamline the selection process, making it easier for you to switch between different mask sources without needing to manually adjust or reconfigure other parts of your project. This functionality is particularly beneficial when experimenting with different masking techniques or when you need to quickly adapt to new creative directions.

InsertAnything - Mask Option Input Parameters:

sketch

The sketch parameter is an input that accepts a mask created through sketching. This option is ideal for artists who prefer to draw their masks manually, allowing for a more personalized and creative approach. The sketch input is expected to be in a format that the node can interpret as a mask, typically a binary or grayscale image where the mask is defined by the intensity of the pixels.

upload

The upload parameter allows you to input a pre-existing mask file. This is useful when you have a mask that has been created or processed outside of the current project and you wish to incorporate it into your workflow. The uploaded mask should be in a compatible format that the node can process, ensuring that it aligns with the expected mask structure.

option

The option parameter determines which of the two mask inputs will be used by the node. It offers two choices: "sketch" or "upload", with "sketch" being the default selection. This parameter is crucial as it dictates the source of the mask data that will be processed and utilized in subsequent operations. By selecting the appropriate option, you can easily switch between using a hand-drawn sketch or an uploaded mask, depending on your project's needs.

InsertAnything - Mask Option Output Parameters:

MASK

The output of the MaskOption node is a MASK, which is the selected mask based on the input parameters. This output is crucial as it serves as the foundation for further processing or integration into your AI art project. The mask output can be used in various ways, such as defining areas of interest, applying effects, or guiding other nodes in the workflow. The flexibility of choosing between a sketch or an uploaded mask ensures that the output is tailored to your specific creative requirements.

InsertAnything - Mask Option Usage Tips:

  • To quickly switch between different mask sources, use the option parameter to toggle between "sketch" and "upload" without needing to reconfigure other parts of your project.
  • Ensure that your sketch or uploaded mask is in a compatible format to avoid processing errors and to ensure seamless integration into your workflow.

InsertAnything - Mask Option Common Errors and Solutions:

Invalid mask format

  • Explanation: The mask provided in either the sketch or upload input is not in a format that the node can process.
  • Solution: Verify that the mask is in a binary or grayscale format and that it meets the node's requirements for mask data.

Option not recognized

  • Explanation: The value provided for the option parameter is not one of the accepted choices ("sketch" or "upload").
  • Solution: Ensure that the option parameter is set to either "sketch" or "upload" to correctly select the desired mask input.

InsertAnything - Mask Option Related Nodes

Go back to the extension to check out more related nodes.
InsertAnything-ComfyUI-official
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.