Add muter

This commit is contained in:
tritant
2025-09-23 11:17:53 +02:00
committed by GitHub
parent f837446d30
commit e897344edf
+20 -2
View File
@@ -15,7 +15,25 @@ class OrchestratorNode:
# La fonction n'a plus besoin d'argument.
def do_nothing(self):
return ()
class OrchestratorNodeMuter:
NAME = "OrchestratorNode Muter"
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 }
NODE_CLASS_MAPPINGS = { "OrchestratorNode": OrchestratorNode, "OrchestratorNodeMuter": OrchestratorNodeMuter }
NODE_DISPLAY_NAME_MAPPINGS = { "OrchestratorNode": "OrchestratorNode", "OrchestratorNodeMuter": "OrchestratorNode Muter" }