Visit ComfyUI Online for ready-to-use ComfyUI environment
Transforms comma-separated string into list of floating-point numbers with repeat notation support for AI artists.
The StringToFloatListRanged node is designed to transform a comma-separated string into a list of floating-point numbers, offering a unique feature that supports repeat notation. This node is particularly useful for AI artists who need to convert textual numerical data into a format that can be easily processed in computational tasks. By allowing repeat notation using the # symbol, such as 3#5, the node can efficiently generate repeated sequences of numbers, which can be mixed with regular numbers in the input string. For example, the input string 1, 2.5#3, 7 would be converted into the list [1.0, 2.5, 2.5, 2.5, 7.0]. This functionality is beneficial for creating patterns or sequences in data processing tasks, making it a versatile tool for artists working with numerical data in creative projects.
The string parameter is a required input that accepts a comma-separated string of numbers, which can include both regular numbers and repeat notations. The repeat notation is specified using the # symbol, where a number followed by # and another number indicates how many times the first number should be repeated. For instance, 2.5#3 means the number 2.5 should be repeated three times. This parameter allows for multiline input, making it easier to handle longer sequences. The default value is "1, 2, 3#2, 5.5", which demonstrates both regular numbers and repeat notation. This parameter is crucial as it defines the sequence of numbers that will be converted into a list of floats.
The FLOAT output parameter provides the resulting list of floating-point numbers derived from the input string. This list is the main output of the node and represents the converted numerical data that can be used in further processing or analysis. The output is essential for tasks that require numerical input, as it transforms a textual representation into a format that can be easily manipulated and utilized in various computational contexts.
# to efficiently create sequences of repeated numbers, which can simplify the input string and reduce manual entry.# symbol.# symbol, like 3#5.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.