ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

Dynamic Input/Output Support

Open robinjhuang opened this issue 6 months ago • 2 comments

Background

V3 Schema and ComfyUI_frontend supports dynamic inputs and outputs.

In Scope

  • Support for 0..n inputs of a particular type.
  • Support for changing available inputs based on a dropdown (like VHS Nodes does for video formats).
  • Support for ‘templated’ types. (E.g. when you connect a Switch to an IMAGE, all sockets become IMAGE.)

robinjhuang avatar Jun 19 '25 00:06 robinjhuang

I'm particularly curious about this. I do have an open PR #8581, that has a switch node that is currently just using an anytype for the output, but could possibly be rewritten for the V3 schema, possibly making it more standard with the rest of the ComfyUI ecosystem.

LaVie024 avatar Jun 19 '25 04:06 LaVie024

That will be great! @LaVie024 We will be sharing the schema next week. Please test it and let us know what you think!

robinjhuang avatar Jun 21 '25 23:06 robinjhuang

Hey,

What's the status with this? Seems like DynamicInput and DynamicOutput abstract classes are defined in the latest API, but none of it is exported. (No implementations of the output class exist and the two for the input class are not exported. Is there any plans to make the available in the near future?

Thank you for your hard work on the project!

jKaarlehto avatar Nov 18 '25 14:11 jKaarlehto