smn_support_nodes
Paketprofil
- Status
- Überprüft
- Verleger
- @SummonTheCat
- Quelle
- GitHub
README
smn_comfy
A collection of custom nodes for ComfyUI
Knoten in diesem Paket
19 Knoten (Plural)
Knoten in diesem Paket
19 Knoten (Plural)- 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 · 0 Eingaben · 1 Parameter · 3 Ausgaben
- 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 · 0 Eingaben · 1 Parameter · 2 Ausgaben
- 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 · 0 Eingaben · 1 Parameter · 2 Ausgaben
- SsnDrawText
SsnDrawText
A node for drawing text onto an image.
Smn/Draw · 3 Eingaben · 7 Parameter · 1 Ausgabe
- SsnInputColor
SsnInputColor
A node for referencing externally to set a color value, also has a nice input field for editing.
Smn/Input · 0 Eingaben · 1 Parameter · 2 Ausgaben
- 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 · 0 Eingaben · 1 Parameter · 1 Ausgabe
- SsnInputFont
SsnInputFont
A node for selecting a font from the available fonts in the fonts directory.
0 Eingaben · 1 Parameter · 1 Ausgabe
- 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 · 0 Eingaben · 1 Parameter · 1 Ausgabe
- 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 · 0 Eingaben · 1 Parameter · 1 Ausgabe
- 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 · 0 Eingaben · 1 Parameter · 1 Ausgabe
- SsnJSONGetIndexValue
SsnJSONGetIndexValue
Kompakte Beschreibung für diesen Knoten nicht verfügbar.
- 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 · 0 Eingaben · 2 Parameter · 1 Ausgabe
- SsnJSONGetValueAs
SsnJSONGetValueAs
Kompakte Beschreibung für diesen Knoten nicht verfügbar.
- SsnOutputWebM
SsnOutputWebM
A node that converts an image batch to WebM.
Output · 2 Eingaben · 3 Parameter · 0 Ausgaben
- SsnPrepAppendBatch
SsnPrepAppendBatch
A node that appends one batch of images to another if they are the same size.
Smn/Prep · 2 Eingaben · 0 Parameter · 1 Ausgabe
- 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 · 1 Eingabe · 2 Parameter · 1 Ausgabe
- SsnPrepFlattenAlpha
SsnPrepFlattenAlpha
A node that takes images with alpha and flattens them onto a background color, removing the alpha channel.
Smn/Prep · 2 Eingaben · 0 Parameter · 1 Ausgabe
- SsnPrepReverseBatch
SsnPrepReverseBatch
Reverses the order of the image batch.
Smn/Prep · 1 Eingabe · 0 Parameter · 1 Ausgabe
- 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 · 1 Eingabe · 5 Parameter · 1 Ausgabe
Quellen
2 Quellen
Quellen
2 QuellenVerifiziert 16. Okt.
Quellenauszüge
1 Auszug
Quellenauszüge
1 AuszugSource context: Repo SummonTheCat/smn_support_nodes
