Add Ordered Passthrough node with auto-wired execution order
Some checks are pending
Publish to Comfy registry / Publish Custom Node to registry (push) Waiting to run

JS extension auto-creates LiteGraph links between consecutive
passthrough nodes based on their order widget (1→2→3→4), hiding
the wait_for input and drawing visual chain lines between nodes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-05 03:28:04 +01:00
parent 2f4a58f134
commit 0559e16cf0
3 changed files with 322 additions and 1 deletions

View File

@@ -155,11 +155,36 @@ class JDL_StringSwitch:
return (on_false if on_false is not None else default_false,)
class JDL_DependencyPassthrough:
"""Passes data through unchanged. Set 'order' in the JS widget to auto-wire
execution order between passthrough nodes (1 → 2 → 3 → 4)."""
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"data": (any_type,),
},
"optional": {
"wait_for": (any_type,),
},
}
RETURN_TYPES = (any_type,)
RETURN_NAMES = ("data",)
FUNCTION = "passthrough"
CATEGORY = "utils/flow"
def passthrough(self, data, wait_for=None):
return (data,)
NODE_CLASS_MAPPINGS = {
"JDL_PathJoin": JDL_PathJoin,
"JDL_StringFormat": JDL_StringFormat,
"JDL_StringExtract": JDL_StringExtract,
"JDL_StringSwitch": JDL_StringSwitch,
"JDL_DependencyPassthrough": JDL_DependencyPassthrough,
}
NODE_DISPLAY_NAME_MAPPINGS = {
@@ -167,4 +192,5 @@ NODE_DISPLAY_NAME_MAPPINGS = {
"JDL_StringFormat": "String Format",
"JDL_StringExtract": "String Extract",
"JDL_StringSwitch": "String Switch",
"JDL_DependencyPassthrough": "Ordered Passthrough",
}