List Custom Int:
The 1hew_ListCustomInt node is designed to process a block of text input and extract integer values from it. This node is particularly useful when you have a text containing numbers that you want to convert into a list of integers for further processing or analysis. It intelligently parses the text, identifying numbers even if they are embedded within quotes or separated by various delimiters like commas or semicolons. The node ensures that only valid integers are extracted, gracefully handling any non-numeric content by ignoring it. This functionality is beneficial for AI artists who need to work with numerical data extracted from textual descriptions or annotations, providing a seamless way to convert text-based numbers into a usable integer list.
List Custom Int Input Parameters:
custom_text
The custom_text parameter is a multiline string input where you can provide the text containing numbers you wish to extract. This input serves as the source from which the node will parse and identify integer values. The text can include numbers in various formats, and the node will attempt to convert them into integers, ignoring any non-numeric content. There are no strict minimum or maximum values for this input, but it defaults to an empty string if not provided. This flexibility allows you to input a wide range of text data, making it adaptable to different use cases.
List Custom Int Output Parameters:
int_list
The int_list output is a list of integers extracted from the provided custom_text. This list contains all the valid integers identified by the node, allowing you to use these numbers in subsequent processes or analyses. The node ensures that only valid integers are included, providing a clean and reliable output.
count
The count output represents the total number of integers successfully extracted from the custom_text. This count gives you a quick overview of how many numbers were found and converted, which can be useful for validation or further decision-making processes.
List Custom Int Usage Tips:
- Ensure that your input text is formatted correctly, with numbers clearly separated by spaces, commas, or semicolons to facilitate accurate parsing.
- Use this node to preprocess text data containing numerical information before feeding it into other nodes or systems that require integer inputs.
List Custom Int Common Errors and Solutions:
Invalid Input Format
- Explanation: The input text may contain characters or formats that are not recognized as numbers.
- Solution: Review the input text to ensure that numbers are clearly defined and separated by spaces, commas, or semicolons. Remove any unnecessary characters that might interfere with parsing.
Empty Output List
- Explanation: The node returns an empty list if no valid integers are found in the input text.
- Solution: Check the input text to ensure it contains numbers. If the text is correct, consider adding default values or handling empty outputs in your workflow to prevent disruptions.
