From f80f6725337731f894889fc8bb026bc39d2b8cb3 Mon Sep 17 00:00:00 2001 From: VALADI K JAGANATHAN Date: Sun, 26 Nov 2023 14:32:45 +0530 Subject: [PATCH] Update __init__.py --- __init__.py | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/__init__.py b/__init__.py index 163dbcc..330611d 100644 --- a/__init__.py +++ b/__init__.py @@ -16,19 +16,37 @@ try: if CC_VERSION < 1: # specify the minimum version you need as a float raise Exception() except: - print("ComfyUI_jags_Vectormagic 1.0 not found - will try to install - you may need to restart afterwards") + print("ComfyUI_Jags_VectorMagic 1.0 not found - will try to install - you may need to restart afterwards") from .install import installer import os import folder_paths application_root_directory = os.path.dirname(folder_paths.__file__) installer(os.path.join(application_root_directory,"custom_nodes")) +# Node Names from the beginning +# Note: Name: Unique to all node classes # NODE_CLASS_MAPPINGS = { "my unique name" : SimpleCustomNode } -NODE_CLASS_MAPPINGS = {} -#NODE_DISPLAY_NAME_MAPPINGS = { "my unique name" : "Image inverter" } +NODE_CLASS_MAPPINGS = { + "xxx":xxx +} +#Main titles +#NODE_DISPLAY_NAME_MAPPINGS = { "my unique name" : "Image inverter" } +NODE_DISPLAY_NAME_MAPPINGS = { + "xxx": "xxxx #Example Node" + +} CC_VERSION = 1.0 + +# web ui feature +WEB_DIRECTORY = "./js" + +#print confirmation + +print('--------------') +print('\ComfyUI_Jags_VectorMagic- nodes_loaded') +print('--------------') #__all__ = ['NODE_CLASS_MAPPINGS', 'NODE_DISPLAY_NAME_MAPPINGS'] __ALL__ = [NODE_CLASS_MAPPINGS, CC_VERSION]