Added default values for execute() in IfAnyGet() node Changed `ANY` input in IfAnyGet() to be optional Renamed IfAny() to NotGate() for consistency Removed `anything` as global and made local Removed checks in check_lazy_status() for IfAnyGet() to allow optional
45 lines
868 B
Python
45 lines
868 B
Python
from comfy_api.latest import ComfyExtension, io
|
|
from .src.dd_logicnodes.nodes import (
|
|
IfAnyGet,
|
|
OrGet,
|
|
AndGet,
|
|
NorGet,
|
|
XorGet,
|
|
NandGet,
|
|
XnorGet,
|
|
NotGate,
|
|
OrGate,
|
|
AndGate,
|
|
NorGate,
|
|
XorGate,
|
|
NandGate,
|
|
XnorGate,
|
|
)
|
|
|
|
|
|
UE_VERSION = "7.7"
|
|
__all__ = []
|
|
|
|
|
|
async def comfy_entrypoint() -> ComfyExtension:
|
|
class DDLogicNodes(ComfyExtension):
|
|
async def get_node_list(self) -> list[type[io.ComfyNode]]:
|
|
return [
|
|
IfAnyGet,
|
|
OrGet,
|
|
AndGet,
|
|
NorGet,
|
|
XorGet,
|
|
NandGet,
|
|
XnorGet,
|
|
NotGate,
|
|
OrGate,
|
|
AndGate,
|
|
NorGate,
|
|
XorGate,
|
|
NandGate,
|
|
XnorGate,
|
|
]
|
|
|
|
return DDLogicNodes()
|