ComfyUI > Nodes > Akatz Custom Nodes > Float List To Dilate Mask Schedule | Akatz

ComfyUI Node: Float List To Dilate Mask Schedule | Akatz

Class Name

AK_FloatListToDilateMaskSchedule

Category
💜Akatz Nodes/Utils
Author
akatz-ai (Account age: 358days)
Extension
Akatz Custom Nodes
Latest Updated
2025-04-05
Github Stars
0.03K

How to Install Akatz Custom Nodes

Install this extension via the ComfyUI Manager by searching for Akatz Custom Nodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Akatz Custom Nodes 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

Float List To Dilate Mask Schedule | Akatz Description

Transform float list into mask dilation schedule for animation and visual effects automation.

Float List To Dilate Mask Schedule | Akatz:

The AK_FloatListToDilateMaskSchedule node is designed to transform a list of floating-point values into a schedule for dilating masks, which is particularly useful in animation and visual effects workflows. This node takes a sequence of float values and, based on specified parameters such as color and threshold, generates a string that outlines when and how mask dilation should occur. The primary benefit of this node is its ability to automate the creation of complex dilation schedules, which can be used to create dynamic visual effects that respond to changes in input data. By converting float values into actionable mask dilation instructions, this node simplifies the process of creating intricate animations that require precise control over mask transformations.

Float List To Dilate Mask Schedule | Akatz Input Parameters:

float_list

The float_list parameter is a sequence of floating-point numbers that serve as the primary input for the node. Each value in this list is evaluated against the specified threshold to determine whether a dilation event should be triggered. This parameter is crucial as it directly influences the timing and occurrence of mask dilations. The default input is expected to be a list of floats, and there are no explicit minimum or maximum values, as the list can vary in length and content.

mask_colors

The mask_colors parameter specifies the colors to be used for the dilation masks. These colors are defined in the format "(r, g, b), (r, g, b), ...", where each tuple represents an RGB color. This parameter allows you to customize the visual appearance of the dilated masks, making it possible to create visually distinct effects. The default value is '(255, 255, 0), (255, 0, 255)', which corresponds to yellow and magenta. The colors are cycled through as dilation events are triggered.

threshold

The threshold parameter is a floating-point value that determines the sensitivity of the dilation trigger. When a value in the float_list exceeds this threshold, a dilation event is initiated. This parameter allows you to control the responsiveness of the dilation schedule to changes in the input data. The default value is 0.5, with a minimum of 0.0 and a maximum of 1.0, allowing for fine-tuning of the dilation sensitivity.

dilation_speed

The dilation_speed parameter defines the speed at which the mask dilation occurs, measured in pixels per frame. This parameter affects how quickly the mask expands during a dilation event, providing control over the visual dynamics of the effect. The default value is 30, with a minimum of 1, allowing for adjustments to suit different animation speeds and styles.

Float List To Dilate Mask Schedule | Akatz Output Parameters:

STRING

The output of the node is a STRING that represents the dilation mask schedule. This string contains a series of instructions detailing when and how each mask dilation should occur, including the start frame, dilation speed, and color. This output is essential for driving subsequent processes that apply the dilation schedule to visual elements, enabling the creation of dynamic and responsive animations.

Float List To Dilate Mask Schedule | Akatz Usage Tips:

  • To achieve smooth and visually appealing animations, experiment with different threshold values to find the optimal sensitivity for your specific float list data.
  • Use contrasting mask_colors to ensure that the dilated masks are easily distinguishable in your animations, enhancing the visual impact of the effect.

Float List To Dilate Mask Schedule | Akatz Common Errors and Solutions:

No valid matches found in the provided schedule string.

  • Explanation: This error occurs when the generated schedule string does not contain any valid dilation instructions, possibly due to incorrect input parameters or an empty float list.
  • Solution: Verify that the float_list contains values that exceed the specified threshold and ensure that the mask_colors are correctly formatted. Adjust the threshold and dilation_speed parameters as needed to generate a valid schedule.

Invalid color format in mask_colors

  • Explanation: This error arises when the mask_colors parameter is not formatted correctly, preventing the node from parsing the colors.
  • Solution: Ensure that the mask_colors are specified in the correct format, such as "(255, 255, 0), (255, 0, 255)", and that there are no syntax errors or missing parentheses.

Float List To Dilate Mask Schedule | Akatz Related Nodes

Go back to the extension to check out more related nodes.
Akatz Custom Nodes
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 Playground, enabling artists to harness the latest AI tools to create incredible art.