Visit ComfyUI Online for ready-to-use ComfyUI environment
Convert text to integers for numerical data processing, handling various formats seamlessly.
The xyz-util-txt-to-int
node is designed to convert a string of text into a series of integers. This node is particularly useful when you need to process numerical data embedded in text format, such as ranges or individual numbers, and convert them into a list of integers for further computational tasks. By parsing the text input, it can handle various formats including single integers, ranges with optional steps, and ranges with a specified count. This functionality is essential for tasks that require numerical manipulation or analysis based on textual input, providing a seamless way to bridge the gap between text and numerical data.
The text
parameter is a string input that contains the numerical data you wish to convert. This can include individual numbers, ranges (e.g., "1-10"), or ranges with steps (e.g., "1-10(2)"). The node will parse this text and convert it into a list of integers. The default value is an empty string, and it does not support multiline input.
The name
parameter is a string that allows you to label the resulting data set. This label will be used in the output to annotate the grid and identify the data set. The default value is "steps", and it does not support multiline input.
The s
parameter represents the first integer in the parsed list. This is useful for identifying the starting point of your numerical data.
The e
parameter represents the last integer in the parsed list. This helps in identifying the endpoint of your numerical data.
The count
parameter indicates the total number of integers parsed from the text input. This is useful for understanding the size of your data set.
The gridAnnotion
parameter is a string that combines the name
parameter with the parsed list of integers, separated by semicolons. This provides a human-readable annotation of the data set.
The DICT
parameter is a dictionary that contains the name
as the key and the list of parsed integers as the value. This structured output is useful for further computational tasks that require the data in a dictionary format.
name
parameter to label your data sets meaningfully, which will help in identifying and annotating the output.count
output to quickly understand the size of your parsed data set, which can be useful for validation and further processing.<input>
© Copyright 2024 RunComfy. All Rights Reserved.