Visit ComfyUI Online for ready-to-use ComfyUI environment
Versatile tool for creating text-based masks with customization options for AI artists.
The TextMaskNode
is a versatile tool designed to create masks based on text input. This node allows you to generate masks by rendering text onto a specified area, which can then be used for various artistic and compositional purposes. By providing a range of customization options such as font type, size, color, background color, position, and rotation, the TextMaskNode
offers a high degree of flexibility. This makes it an essential tool for AI artists looking to integrate text elements seamlessly into their visual projects. The node's ability to handle batch processing further enhances its utility, allowing for efficient and consistent application across multiple images or frames.
This parameter specifies the width of the mask area where the text will be rendered. It determines the horizontal space available for the text and can impact the overall layout and readability. The width should be set according to the desired text size and the space available in your composition.
This parameter defines the height of the mask area where the text will be rendered. It determines the vertical space available for the text and can affect the text's appearance and alignment. Adjust the height to ensure the text fits well within the designated area.
This parameter is the actual text string that you want to render into the mask. It can be any sequence of characters, including letters, numbers, and symbols. The text content will be displayed according to the specified font, size, and other styling options.
This parameter specifies the font type to be used for rendering the text. Different fonts can drastically change the appearance and style of the text, so choose a font that aligns with your artistic vision. Common font types include Arial, Times New Roman, and custom fonts.
This parameter determines the size of the text in the mask. It is measured in points and affects the readability and prominence of the text. The font size should be chosen based on the overall design and the amount of space available in the mask area.
This parameter sets the color of the text. It is typically defined using RGB values or color names. The font color should contrast well with the background color to ensure the text is readable and visually appealing.
This parameter defines the color of the background area where the text will be rendered. It can be set using RGB values or color names. The background color should complement the font color to create a harmonious and readable text mask.
This parameter specifies the horizontal position of the text within the mask area. It determines where the text will start along the x-axis and can be adjusted to align the text as desired within the mask.
This parameter defines the vertical position of the text within the mask area. It determines where the text will start along the y-axis and can be adjusted to position the text appropriately within the mask.
This parameter allows you to rotate the text within the mask area. The rotation is specified in degrees and can be used to create dynamic and interesting text layouts. Adjust the rotation to achieve the desired visual effect.
This parameter sets the maximum width ratio for the text relative to the mask area. It ensures that the text does not exceed a certain width, maintaining readability and preventing overflow. Adjust the ratio to fit the text within the designated space.
This parameter specifies the number of masks to be processed in a batch. It allows for efficient handling of multiple images or frames, ensuring consistent application of the text mask across all items in the batch.
The output parameter mask
is a tensor representing the generated text mask. This mask can be used in various compositional and artistic processes, serving as a stencil or overlay to integrate text elements into your visual projects. The mask's values indicate the presence and intensity of the text within the specified area.
© Copyright 2024 RunComfy. All Rights Reserved.