Files
daxcay-ComfyUI-JDCN/JDCN_ListToString.py
T
daxcay b5d49a1ebb Category Name Change and Making New REPO for Research tool
Decision was due to the increase of loading size of JDCN users who were not Using Reasearch nodes
2024-04-26 18:06:02 +05:30

40 lines
796 B
Python

class JDCN_ListToString:
def __init__(self):
pass
@classmethod
def INPUT_TYPES(s):
return {
"required": {
"list": ("STRING", {"forceInput": True}),
},
}
INPUT_IS_LIST = True
RETURN_TYPES = ("STRING",)
RETURN_NAMES = ("string",)
OUTPUT_NODE = True
FUNCTION = "make_list"
CATEGORY = "🔵 JDCN 🔵"
def make_list(self, list):
if len(list) == 0:
print("Error in List Variable")
return ("",)
file_string_list = '\n'.join(list)
return (file_string_list,)
N_CLASS_MAPPINGS = {
"JDCN_ListToString": JDCN_ListToString,
}
N_DISPLAY_NAME_MAPPINGS = {
"JDCN_ListToString": "JDCN_ListToString",
}