ComfyUI-Custom-Scripts icon indicating copy to clipboard operation
ComfyUI-Custom-Scripts copied to clipboard

[BUG] "Repeats" doesn't work as input value for "Repeater"

Open Shyryp opened this issue 1 year ago • 1 comments

I converted the "Repeats" variable into an input value for the "Repeater" node. However, when any integer value is supplied to the "Repeats" input, nothing happens - the "Repeater" continues to operate as if it had the "Repeats" value set to one.

I did some research and discovered that within Repeater, when any new input variables other than Source are supplied, it will most likely mix up the two input parameters, turning them into one single value: image

Example: If I use Repeats as Input: image

As Widget: image

Shyryp avatar Jul 10 '24 19:07 Shyryp

The repeater works by duplicating the nodes on the frontend, before the graph is sent to the server to be executed. Because of this, the frontend needs to know how many repeats you want before the graph is run, so you can't use normal nodes for specifying the number, you can however use a Primitive Node as that is purely on the frontend.

image

I think supporting this would require a rewrite of the node (and be more complicated)

pythongosssss avatar Jul 13 '24 19:07 pythongosssss