smn_support_nodes
Profil du package
- Statut
- Vérifié
- Éditeur
- @SummonTheCat
- Source
- GitHub
LIREMOI
smn_comfy
A collection of custom nodes for ComfyUI
Nœuds dans ce pack
Nœuds 19
Nœuds dans ce pack
Nœuds 19- SsnConvFloat
SsnConvFloat
A converter node that takes a float input and outputs its string representation, its integer base (truncating the decimal part), and its integer rounded to the nearest whole number. Class methods ------------- INPUT_TYPES (dict): Defines the input fields for this node: a single float. Attributes ---------- RETURN_TYPES (`tuple`): The types of the output tuple: STRING, INT, INT. RETURN_NAMES (`tuple`): The names of the outputs ("string", "int_base", "int_round"). FUNCTION (`str`): The entry-point method name ("execute"). CATEGORY (`str`): The category under which this node appears in the UI ("Converter"). execute(float_value) -> tuple: Returns (string, int_base, int_round) for the input float.
Converter · entrées 0 · paramètre 1 · sorties 3
- SsnConvInt
SsnConvInt
A converter node that takes an integer input and outputs its string and float representations. Class methods ------------- INPUT_TYPES (dict): Defines the input fields for this node: a single integer. Attributes ---------- RETURN_TYPES (`tuple`): The type of the output tuple: a STRING and a FLOAT. RETURN_NAMES (`tuple`): The name of the output ("String", "Float"). FUNCTION (`str`): The entry-point method name ("execute"). CATEGORY (`str`): The category under which this node appears in the UI ("Converter"). execute(integer) -> tuple: Returns a tuple containing the string form of the input integer.
Converter · entrées 0 · paramètre 1 · sorties 2
- SsnConvString
SsnConvString
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.
Converter · entrées 0 · paramètre 1 · sorties 2
- SsnDrawText
SsnDrawText
A node for drawing text onto an image.
Smn/Draw · entrées 3 · paramètres 7 · sortie 1
- SsnInputColor
SsnInputColor
A node for referencing externally to set a color value, also has a nice input field for editing.
Smn/Input · entrées 0 · paramètre 1 · sorties 2
- SsnInputFloat
SsnInputFloat
A node that provides a numeric textbox for float input and outputs the entered float. Class methods ------------- INPUT_TYPES (dict): Defines the input fields for this node. In this case, a single float field. Attributes ---------- RETURN_TYPES (`tuple`): The type of the output tuple. Here, it is a single FLOAT. RETURN_NAMES (`tuple`): Optional: The name of the output ("value"). FUNCTION (`str`): The name of the entry-point method. This node uses "execute". CATEGORY (`str`): The category under which this node appears in the UI ("Input"). execute(float_value) -> tuple: The entry-point method that returns the float entered by the user.
Input · entrées 0 · paramètre 1 · sortie 1
- SsnInputFont
SsnInputFont
A node for selecting a font from the available fonts in the fonts directory.
entrées 0 · paramètre 1 · sortie 1
- SsnInputInt
SsnInputInt
A node that provides a numeric textbox for integer input and outputs the entered integer. Class methods ------------- INPUT_TYPES (dict): Defines the input fields for this node. In this case, a single integer field. Attributes ---------- RETURN_TYPES (`tuple`): The type of the output tuple. Here, it is a single INT. RETURN_NAMES (`tuple`): Optional: The name of the output ("value"). FUNCTION (`str`): The name of the entry-point method. This node uses "execute". CATEGORY (`str`): The category under which this node appears in the UI ("Input"). execute(integer) -> tuple: The entry-point method that returns the integer entered by the user.
Input · entrées 0 · paramètre 1 · sortie 1
- SsnInputJSON
SsnInputJSON
A node that provides a multi-line textbox for JSON input and outputs the entered string. Class methods ------------- INPUT_TYPES (dict): Defines the input fields for this node. In this case, a single multi-line string field. Attributes ---------- RETURN_TYPES (`tuple`): The type of the output tuple. Here, it is a single STRING. RETURN_NAMES (`tuple`): Optional: The name of the output ("value"). FUNCTION (`str`): The name of the entry-point method. This node uses "execute". CATEGORY (`str`): The category under which this node appears in the UI ("Input"). execute(string) -> tuple: The entry-point method that returns the JSON string entered by the user.
Input · entrées 0 · paramètre 1 · sortie 1
- SsnInputString
SsnInputString
A node that provides a multi-line textbox for user input and outputs the entered string. Class methods ------------- INPUT_TYPES (dict): Defines the input fields for this node. In this case, a single multi-line string field. Attributes ---------- RETURN_TYPES (`tuple`): The type of the output tuple. Here, it is a single STRING. RETURN_NAMES (`tuple`): Optional: The name of the output ("value"). FUNCTION (`str`): The name of the entry-point method. This node uses "execute". CATEGORY (`str`): The category under which this node appears in the UI ("Input"). execute(string) -> tuple: The entry-point method that returns the string entered by the user.
Input · entrées 0 · paramètre 1 · sortie 1
- SsnJSONGetIndexValue
SsnJSONGetIndexValue
Description compacte indisponible pour ce nœud.
- SsnJSONGetKeyValue
SsnJSONGetKeyValue
A node that takes a JSON-formatted string (via a pin) and a key, then outputs the value associated with that key. Class methods ------------- INPUT_TYPES (dict): Defines the input fields for this node. In this case, a JSON string (single-line pin) and a key string. Attributes ---------- RETURN_TYPES (`tuple`): The type of the output tuple. Here, it is a single STRING. RETURN_NAMES (`tuple`): Optional: The name of the output ("value"). FUNCTION (`str`): The name of the entry-point method. This node uses "execute". CATEGORY (`str`): The category under which this node appears in the UI ("JSON"). execute(json_string, key) -> tuple: Parses the JSON from the pin and returns the value for the given key as a JSON-formatted string. If the key is not found or parsing fails, returns an empty string.
JSON · entrées 0 · paramètres 2 · sortie 1
- SsnJSONGetValueAs
SsnJSONGetValueAs
Description compacte indisponible pour ce nœud.
- SsnOutputWebM
SsnOutputWebM
A node that converts an image batch to WebM.
Output · entrées 2 · paramètres 3 · sorties 0
- SsnPrepAppendBatch
SsnPrepAppendBatch
A node that appends one batch of images to another if they are the same size.
Smn/Prep · entrées 2 · paramètres 0 · sortie 1
- SsnPrepCrop
SsnPrepCrop
A node that takes an image batch and adjusts the canvas size by either clipping or filling whitespace, while keeping the original content centered.
Smn/Prep · entrée 1 · paramètres 2 · sortie 1
- SsnPrepFlattenAlpha
SsnPrepFlattenAlpha
A node that takes images with alpha and flattens them onto a background color, removing the alpha channel.
Smn/Prep · entrées 2 · paramètres 0 · sortie 1
- SsnPrepReverseBatch
SsnPrepReverseBatch
Reverses the order of the image batch.
Smn/Prep · entrée 1 · paramètres 0 · sortie 1
- SsnPrepTrimScale
SsnPrepTrimScale
A node that takes an image, trims it to size, then scales each to the width or height of the image.
Smn/Prep · entrée 1 · paramètres 5 · sortie 1
Sources
2 sources
Sources
2 sourcesVérifié 16 oct.
Extraits de sources
1 extrait
Extraits de sources
1 extraitSource context: Repo SummonTheCat/smn_support_nodes
