Add files via upload

This commit is contained in:
tritant
2025-09-23 07:53:21 +02:00
committed by GitHub
parent 64eed9ad12
commit 4bd77be082
2 changed files with 29 additions and 0 deletions
+8
View File
@@ -0,0 +1,8 @@
# Importe les dictionnaires nécessaires depuis notre fichier de logique
from .orchestrator import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
# Spécifie que les fichiers web (JS, CSS) se trouvent dans le sous-dossier "js"
WEB_DIRECTORY = "./js"
# Rend les mappings accessibles à ComfyUI
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
+21
View File
@@ -0,0 +1,21 @@
class OrchestratorNode:
NAME = "OrchestratorNode"
DISPLAY_NAME = "Orchestrator (Workflow Switch)"
FUNCTION = "do_nothing"
CATEGORY = "Logic"
@classmethod
def INPUT_TYPES(cls):
# Le widget est maintenant 100% géré par le JavaScript.
return { "required": {} }
RETURN_TYPES = ()
OUTPUT_NODE = True
# La fonction n'a plus besoin d'argument.
def do_nothing(self):
return ()
# Ces dictionnaires restent inchangés
NODE_CLASS_MAPPINGS = { OrchestratorNode.NAME: OrchestratorNode }
NODE_DISPLAY_NAME_MAPPINGS = { OrchestratorNode.NAME: OrchestratorNode.DISPLAY_NAME }