Skip to content

Example of how to create dynamic inputs on a node for ComfyUI

License

Notifications You must be signed in to change notification settings

cozy-comfyui/cozy_ex_dynamic

Repository files navigation

Example of Dynamic Inputs for ComfyUI

image

An example for how to do the specific mechanism of adding dynamic inputs to a node.

Why is this a thing?

Because a lot of people ask the same questions over and over and the examples are always in some type of compound setup which requires unwinding a lot of extra code or logic that is not required to answer the main question.

How is this different than having to pull apart all those other repositories?

The example is kept to (at most) two files:

  • The python entry point
  • The supporting js This keeps the focus on the actual problem being solved.

The file names for the nodes will match in name to the node example they represent.

Installation:

Clone this repository to 'ComfyUI/custom_nodes` folder.

There are no extra requirements.

Node List

Dynamic Node (cozy)

Multiple Inputs.

CONTRIBUTORS TO THIS CODE CONCEPT

This example uses concepts and code constructs from various repositories. The contributions by these developers have made such exemplars possible. Please take a moment to look into their work or send them a thank you.

About

Example of how to create dynamic inputs on a node for ComfyUI

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published