Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform float list into mask dilation schedule for animation and visual effects automation.
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.
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.
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.
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.
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.
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.
threshold
values to find the optimal sensitivity for your specific float list data.mask_colors
to ensure that the dilated masks are easily distinguishable in your animations, enhancing the visual impact of the effect.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.mask_colors
parameter is not formatted correctly, preventing the node from parsing the colors.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.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.