Files
engineer6980-ComfyUI-Image-…/__init__.py
T
2026-01-31 20:51:59 +08:00

17 lines
549 B
Python

# 导入你写的节点类
from .cipher_nodes import ImageCipherEncode, ImageCipherDecode
# 建立 ComfyUI 内部识别名与 Python 类的映射
NODE_CLASS_MAPPINGS = {
"ImageCipherEncode": ImageCipherEncode,
"ImageCipherDecode": ImageCipherDecode
}
# 建立节点在 UI 界面显示的中文/英文名称
NODE_DISPLAY_NAME_MAPPINGS = {
"ImageCipherEncode": "🔒 RGB 行交织加密",
"ImageCipherDecode": "🔓 RGB 行交织解密"
}
# 必须导出这两个变量
__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS']