Nodes/smn_support_nodes/[SSN] Convert String To Others
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.

By SummonTheCat·Created about a year ago·Updated about a year ago· 0
[SSN] Convert String To Others
    • float
    • int
    string
    CategoryConverter

    Inputs (1)

    NameTypeDefaultDescription
    stringSTRING

    Outputs (2)

    NameTypeDescription
    floatFLOAT
    intINT