Files
akatz-ai-ComfyUI-Basic-Math/base_node.py
T
2025-06-18 01:31:01 +00:00

34 lines
771 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
NODE_NAME = "Basic Math ➕" # Can be changed to any desired prefix
NODE_POSTFIX = "| Basic"
# Base class for all nodes
class BaseNode:
CATEGORY = NODE_NAME
@classmethod
def get_category(cls):
return cls.CATEGORY
class PrimitiveNode(BaseNode):
CATEGORY = f"{NODE_NAME}/Primitives"
class ArithmeticNode(BaseNode):
CATEGORY = f"{NODE_NAME}/Arithmetic"
class BooleanNode(BaseNode):
CATEGORY = f"{NODE_NAME}/Boolean"
class ConversionNode(BaseNode):
CATEGORY = f"{NODE_NAME}/Conversion"
class UtilityNode(BaseNode):
CATEGORY = f"{NODE_NAME}/Utility"
class ConstantsNode(BaseNode):
CATEGORY = f"{NODE_NAME}/Constants"
class DebugNode(BaseNode):
CATEGORY = f"{NODE_NAME}/Debug"