ComfyUI Node
[SSN] Convert String To Others
A converter node that takes a string input and outputs its float and integer representations, defaulting to 0 if the conversion fails. Class methods ------------- INPUT_TYPES (dict): Defines the input fields for this node: a single string. Attributes ---------- RETURN_TYPES (`tuple`): The types of the output tuple: FLOAT and INT. RETURN_NAMES (`tuple`): The names of the outputs ("float", "int"). FUNCTION (`str`): The entry-point method name ("execute"). CATEGORY (`str`): The category under which this node appears in the UI ("Converter"). execute(string_value) -> tuple: Returns (float_value, int_value) converted from the input string, or (0.0, 0) on failure.
[SSN] Convert String To Others
- float
- int
◄string►
CategoryConverter
Inputs (1)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| float | FLOAT | — |
| int | INT | — |