Visit ComfyUI Online for ready-to-use ComfyUI environment
Cycle through predefined integer sequence for dynamic parameter control in AI art projects, with forward, reverse, pingpong, and random modes.
The IntSequence node is designed to cycle through a predefined sequence of integer values, providing a dynamic and automated way to iterate over numbers in real-time. This node is particularly useful for scenarios where you need to control or animate parameters that require integer inputs, such as frame numbers, step counts, or any other integer-based control in your AI art projects. By leveraging this node, you can automate the process of changing integer values over time, allowing for more complex and varied outputs without manual intervention. The node operates by taking a list of integers and cycling through them according to a specified sequence mode, which can be forward, reverse, pingpong, or random. This flexibility makes it a powerful tool for creating dynamic and responsive art pieces.
This parameter accepts a string of comma-separated integer values that define the sequence through which the node will cycle. The default value is "0, 5, 10", and it serves as the list of integers that the node will iterate over. The values you provide here will directly impact the output of the node, as they determine the sequence of integers that will be cycled through.
This integer parameter specifies the number of frames or steps for which each integer value in the sequence should be displayed before moving to the next. It has a default value of 30, with a minimum of 1 and a maximum of 1000. Adjusting this parameter allows you to control the speed at which the sequence progresses, with higher values resulting in slower transitions between integers.
This parameter determines the order in which the sequence of integers is cycled through. It offers four options: "forward", "reverse", "pingpong", and "random", with "forward" being the default. The choice of sequence mode affects how the node navigates through the list of integers, providing different patterns of iteration that can be used to achieve various artistic effects.
A boolean parameter that, when set to True, ensures the node executes its update function on every frame or step, regardless of changes in input. This is useful for maintaining consistent behavior in dynamic environments where inputs might frequently change.
The output of the IntSequence node is an integer value, which represents the current item in the sequence based on the specified cycling mode and step count. This output is crucial for driving other nodes or parameters that require integer inputs, allowing for synchronized and automated control over various aspects of your AI art project.
steps_per_item
parameter to a higher value, which will slow down the cycling and provide a more gradual change.sequence_mode
settings to achieve unique patterns and effects in your artwork, such as using "pingpong" for a back-and-forth motion or "random" for unpredictable variations.values
values
parameter contains non-integer or improperly formatted entries.values
string are valid integers and are separated by commas without any extra spaces or characters.steps_per_item
out of rangesteps_per_item
parameter is set below 1 or above 1000.steps_per_item
value to be within the allowed range of 1 to 1000 to ensure proper execution.sequence_mode
sequence_mode
parameter.sequence_mode
is set to one of the supported options: "forward", "reverse", "pingpong", or "random".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.