Add string/path utility nodes (PathJoin, StringFormat, StringExtract, StringSwitch)
Some checks failed
Publish to Comfy registry / Publish Custom Node to registry (push) Has been cancelled

Four new nodes that collapse common multi-node chains for path construction,
string templating, substring extraction, and boolean selection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 11:06:32 +01:00
parent 3319c78de0
commit 1e3e30d8f1
4 changed files with 234 additions and 2 deletions

View File

@@ -1,4 +1,14 @@
from .json_loader_dynamic import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
from .json_loader_dynamic import (
NODE_CLASS_MAPPINGS as _json_class_mappings,
NODE_DISPLAY_NAME_MAPPINGS as _json_display_mappings,
)
from .string_utils import (
NODE_CLASS_MAPPINGS as _string_class_mappings,
NODE_DISPLAY_NAME_MAPPINGS as _string_display_mappings,
)
NODE_CLASS_MAPPINGS = {**_json_class_mappings, **_string_class_mappings}
NODE_DISPLAY_NAME_MAPPINGS = {**_json_display_mappings, **_string_display_mappings}
WEB_DIRECTORY = "./web"