Nodes/ComfyUI-Keyframed/KfCurvesAddx10
ComfyUI Node

KfCurvesAddx10

Stop chaining five Add nodes, just wire all the curves in

By dmarx·Created 3 years ago·Updated 2 years ago· 92
KfCurvesAddx10
  • curve_0
  • curve_1
  • curve_2
  • curve_3
  • curve_4
  • curve_5
  • curve_6
  • curve_7
  • curve_8
  • curve_9
  • KEYFRAMED_CURVE

This is the "I have too many curves and I'm not chaining five Add nodes" node. Curve Add (x10) takes up to ten KEYFRAMED_CURVES and adds them all into one curve, in a single step, on a single node. If you've ever built a superposition of curves where each prompt's weight is the sum of several influences, you know exactly why this exists - the alternative is a daisy chain of Curve_1 + Curve_2 nodes that eats half your canvas.

The "x10" family is a recurring pattern in this pack: the base node exists to prove the concept, and the x10 variant exists because the author got tired of people (and workflows) piling up arithmetic nodes. The README is explicit about the one requirement: at least curve_0 must be non-empty. The other nine slots are optional.

How it works

All ten inputs are summed into one curve using the same keyframed addition as the two-input version - which means the result is computed at the union of keyframes of every connected curve. Every timestamp present in any input appears in the output, with all the values added there. The unconnected slots default to a value of 0, which is the additive identity, so an empty slot genuinely contributes nothing. Deep copies are made under the hood, so your source curves stay untouched.

The inputs that matter

  • curve_0 (required, forceInput) - the one that must be wired up.
  • curve_1 through curve_9 (optional) - wire what you have, leave the rest unplugged. Each slot's default is 0, meaning "not contributing."

The output

KEYFRAMED_CURVE - the sum, ready for further arithmetic, plotting, or a Parameter Group.

How to install it

Standard pack install: ComfyUI Manager → search ComfyUI-Keyframed, or

cd ComfyUI/custom_nodes
git clone https://github.com/dmarx/ComfyUI-Keyframed

then restart ComfyUI. No model downloads; the pack's only real dependency is the keyframed library (plus toolz), auto-installed on first import.

Troubleshooting

The README's "at least curve_0 must be non-empty" warning is literal - leave slot zero unplugged and you're missing the entire foundation of the sum, and since unconnected slots are silent zeros, you get a curve that sums to nothing without any error to tell you why. Plug the first one in first. Beyond that, remember the union-of-keyframes rule scales with the number of inputs: ten curves each carrying their own keyframe resolution means a dense output plot. That's correct behavior - the sum genuinely lives at all those points - but it's the reason you should plot the result before feeding it downstream.

Categorykeyframed

Inputs (10)

NameTypeDefaultDescription
curve_0KEYFRAMED_CURVE
curve_1optKEYFRAMED_CURVE0
curve_2optKEYFRAMED_CURVE0
curve_3optKEYFRAMED_CURVE0
curve_4optKEYFRAMED_CURVE0
curve_5optKEYFRAMED_CURVE0
curve_6optKEYFRAMED_CURVE0
curve_7optKEYFRAMED_CURVE0
curve_8optKEYFRAMED_CURVE0
curve_9optKEYFRAMED_CURVE0

Outputs (1)

NameTypeDescription
KEYFRAMED_CURVEKEYFRAMED_CURVE