Files
Derfuu-Derfuu_ComfyUI_Modde…/Nodes/Debug/Debug.py
T
Derfuu cc43376402 Updated to last ComfyUI version (on 26.03.23) to use conversion between fields and connection points
- Fixed types issues
- Added:
 - Int2Tuple node
- Deleted due to last ComfyUI update which made them nearly useless now:
 - ConditioningSetAreaEXT (modded)
 - EmptyLatentImage (modded)
- NOT Deleted, but now might be useless (IMHO):
 - LatentComposite (modded)
 - ConditioningSetArea (modded)
- TUPLES moved to their own subfolder in UI
- ALL custom nodes with FLOAT, INT, STRING values now can use their own fields as inputs (use original conversion to points to connect)
- Refactored nearly all code... again
2023-03-26 20:20:41 +03:00

92 lines
2.0 KiB
Python

import custom_nodes.Derfuu_ComfyUI_ModdedNodes.components.fields as field
from custom_nodes.Derfuu_ComfyUI_ModdedNodes.components.tree import TREE_DEBUG
class DebugNodeFloat:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"TITLE": field.STRING,
"FLOAT": field.FLOAT,
}
}
RETURN_TYPES = ()
CATEGORY = TREE_DEBUG
FUNCTION = "print_values"
OUTPUT_NODE = True
def print_values(self, FLOAT, TITLE):
print(f"{TITLE}: {FLOAT}", sep="\n")
return (None,)
class DebugNodeInt:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"TITLE": field.STRING,
"INTEGER": field.INT,
}
}
RETURN_TYPES = ()
CATEGORY = TREE_DEBUG
FUNCTION = "print_values"
OUTPUT_NODE = True
def print_values(self, INTEGER, TITLE):
print(f"{TITLE}: {INTEGER}", sep="\n")
return (None,)
class DebugNodeTuple:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"TITLE": field.STRING,
"TUPLE": ("TUPLE",),
}
}
RETURN_TYPES = ()
CATEGORY = TREE_DEBUG
FUNCTION = "print_values"
OUTPUT_NODE = True
def print_values(self, TUPLE, TITLE):
print(f"{TITLE}: {TUPLE}", sep="\n")
return (None,)
class DebugNodeString:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"TITLE": field.STRING,
"STRING": field.STRING,
}
}
RETURN_TYPES = ()
CATEGORY = TREE_DEBUG
FUNCTION = "print_values"
OUTPUT_NODE = True
def print_values(self, STRING, TITLE):
print(f"{TITLE}: {STRING}", sep="\n")
return (None,)