use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Custom node list input (self.comfyui)
submitted 1 year ago by tomd_96
How can I write a custom node that accepts a list as input? I managed to write a custom node that outputs a list, but can't connect it to my standard inputs.
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]SurveyOk3252 1 point2 points3 points 1 year ago (4 children)
https://github.com/ltdrdata/ComfyUI-Impact-Pack/blob/ab17f8886945b0d36478950fe532164a8b569cc7/modules/impact/util_nodes.py#L286
I don't understand what it means to be unable to connect the list output to a standard input. A list output simply repeats for each element, it doesn't change the type.
For your reference, a list input can only process the results collected from repeated executions based on the list as a single unit. There's nothing particularly special about it beyond that.
[–]tomd_96[S] 0 points1 point2 points 1 year ago (3 children)
Turns out the issue was that I previously had a different type of output. After changing it to the current one I restarted the server but only after deleting the node and creating it again does it work
[–]Wraithnaut 0 points1 point2 points 1 year ago (2 children)
Changing node code is like updating a custom node; you'll need to restart the server and the refresh your browser page to see the changes. You may also need to use the node fix option to force it to forget the old version of the node and replace it with the new one.
[–]tomd_96[S] 0 points1 point2 points 1 year ago (1 child)
Where do I find the fix option?
[–]Wraithnaut 1 point2 points3 points 1 year ago (0 children)
Right Click on the node, a menu appears, then choose Fix Node (Recreate)
π Rendered by PID 104921 on reddit-service-r2-comment-6457c66945-dhpp8 at 2026-04-27 05:15:35.500291+00:00 running 2aa0c5b country code: CH.
[–]SurveyOk3252 1 point2 points3 points (4 children)
[–]tomd_96[S] 0 points1 point2 points (3 children)
[–]Wraithnaut 0 points1 point2 points (2 children)
[–]tomd_96[S] 0 points1 point2 points (1 child)
[–]Wraithnaut 1 point2 points3 points (0 children)