@@ -45,6 +45,36 @@ def create_list(self, **kwargs: list[Any]) -> tuple[list]:
4545 return (values [:- 1 ],)
4646
4747
48+ class DataListListCreate (ComfyNodeABC ):
49+ """
50+ Creates a new Data List from items.
51+
52+ This node creates and returns a Data List. The list of items is dynamically
53+ extended based on the number of inputs provided.
54+
55+ Each input can be a list, so you'll get a list of lists.
56+ """
57+ @classmethod
58+ def INPUT_TYPES (cls ):
59+ return {
60+ "optional" : ContainsDynamicDict ({
61+ "item_0" : (IO .ANY , {"_dynamic" : "number" , "widgetType" : "STRING" }),
62+ })
63+ }
64+
65+ RETURN_TYPES = (IO .ANY ,)
66+ RETURN_NAMES = ("list" ,)
67+ CATEGORY = "Basic/Data List"
68+ DESCRIPTION = cleandoc (__doc__ or "" )
69+ FUNCTION = "create_list"
70+ OUTPUT_IS_LIST = (True ,)
71+ INPUT_IS_LIST = True
72+
73+ def create_list (self , ** kwargs : list [Any ]) -> tuple [list ]:
74+ values = list (kwargs .values ())
75+ return (values [:- 1 ],)
76+
77+
4878class DataListCreateFromBoolean (ComfyNodeABC ):
4979 """
5080 Creates a new Data List from BOOLEAN items.
@@ -1087,6 +1117,7 @@ def convert(self, **kwargs: list[Any]) -> tuple[set[Any]]:
10871117
10881118NODE_CLASS_MAPPINGS = {
10891119 "Basic data handling: DataListCreate" : DataListCreate ,
1120+ "Basic data handling: DataListListCreate" : DataListListCreate ,
10901121 "Basic data handling: DataListCreateFromBoolean" : DataListCreateFromBoolean ,
10911122 "Basic data handling: DataListCreateFromFloat" : DataListCreateFromFloat ,
10921123 "Basic data handling: DataListCreateFromInt" : DataListCreateFromInt ,
@@ -1124,6 +1155,7 @@ def convert(self, **kwargs: list[Any]) -> tuple[set[Any]]:
11241155
11251156NODE_DISPLAY_NAME_MAPPINGS = {
11261157 "Basic data handling: DataListCreate" : "create Data List" ,
1158+ "Basic data handling: DataListListCreate" : "create Data List of Lists" ,
11271159 "Basic data handling: DataListCreateFromBoolean" : "create Data List from BOOLEANs" ,
11281160 "Basic data handling: DataListCreateFromFloat" : "create Data List from FLOATs" ,
11291161 "Basic data handling: DataListCreateFromInt" : "create Data List from INTs" ,
0 commit comments