Removed(commented) "Tuples" nodes; Removed "TUPLES" type from "Get size" nodes; (DON'T FORGET TO REPLACE THEM IF THEY'RE PERSISTS IN YOUR WORKFLOW) Types moved into their own class with class methods and default parameters instead of just tuples with strings and dicts; Added "Logic node" (>, <, =, AND, OR, XOR); (idk why i did this one, but got an idea that with object recognition models to count objects and correct them in next iterations would be not so bad idea as i think. Or something like this) changed README.md to current state of this repo
30 lines
837 B
Python
30 lines
837 B
Python
from custom_nodes.Derfuu_ComfyUI_ModdedNodes.pyscripts.components.fields import Field, ANY
|
|
from custom_nodes.Derfuu_ComfyUI_ModdedNodes.pyscripts.components.tree import TREE_DEBUG
|
|
|
|
class ShowDataDebug:
|
|
CATEGORY = TREE_DEBUG
|
|
|
|
@classmethod
|
|
def INPUT_TYPES(cls):
|
|
return {
|
|
"required": {
|
|
"ANY": Field.any(),
|
|
},
|
|
}
|
|
|
|
OUTPUT_IS_LIST = (False, True, )
|
|
RETURN_TYPES = (ANY, "STRING", )
|
|
RETURN_NAMES = ("SAME AS INPUT", "STRING", )
|
|
OUTPUT_NODE = True
|
|
FUNCTION = "func"
|
|
|
|
def func(self, ANY = None):
|
|
out = ANY
|
|
try:
|
|
out = str(out)
|
|
print(f"[DEBUG]: {ANY}")
|
|
except Exception as e:
|
|
print(f"[DEBUG-EXCEPTION]: {e}")
|
|
out = str(e)
|
|
return {"ui": {"text": [out]}, "result": (ANY, [out])}
|