Nodes/ComfyUI-ConDelta/Smooth Clamp ConDelta between -1 and 1
ComfyUI Node

Smooth Clamp ConDelta between -1 and 1

A smooth safety rail for runaway conditioning deltas

By envy-ai·Created 2 years ago·Updated 11 months ago· 209
Smooth Clamp ConDelta between -1 and 1
  • conditioning
  • CONDITIONING

No knobs, one job: this node takes a conditioning or ConDelta and squashes its values smoothly into the -1 to 1 range. The node's own display name spells out exactly what it does - "Smooth Clamp ConDelta between -1 and 1" - and that's the whole node. No strength, no threshold, nothing to configure. You wire it in, and whatever comes out is bounded.

Why you'd reach for it

Deltas you build yourself - by averaging several conditionings, subtracting one prompt from another, or auto-generating one with GetConDeltaFromPrompt - don't come with any guarantee about their scale. A delta computed from an unusual pair of prompts, or averaged from several sources with ConditioningAverageMultiple, can end up with a much larger magnitude than a hand-tuned one, and adding that straight into a generation is a good way to get artifacts or blown-out output. ClampConDelta is the cheap fix: run any delta through it before you add it to a real conditioning, and you've capped how far it can push things, without having to think about a specific numeric bound.

The word "smooth" in the display name is the detail worth noticing. This isn't a hard cutoff - the pack also ships HardClampConDelta for that, which lets you set your own bound and clips abruptly at it. This node is the gentler tool: it squashes extreme values down rather than truncating them outright, which tends to avoid the sudden discontinuity a hard clip can introduce into an otherwise continuous vector.

The inputs and outputs that matter

  • conditioning - the only input. Feed it a conditioning or a ConDelta; the node doesn't distinguish between the two, since a ConDelta is a conditioning under the hood.

Output is a single CONDITIONING, the clamped version, ready to feed onward into ConditioningAddConDelta, SaveConditioningDelta, or anywhere else in the pack.

How to install it

Via ComfyUI Manager: search "ComfyUI-ConDelta", install, restart. Manually:

cd ComfyUI/custom_nodes
git clone https://github.com/envy-ai/ComfyUI-ConDelta

then restart. Nothing to download for this node specifically - it's a pure math op.

Common issues & troubleshooting

If -1 to 1 is too aggressive or too loose for your case, use HardClampConDelta instead, which takes a strength input so you can set your own bound rather than accepting the fixed range this node applies.

This isn't a substitute for ApplyConDeltaAutoScale's normalization. Clamping caps extreme values after the fact; auto-scaling changes the delta's overall magnitude relative to your base conditioning before you ever apply a strength. They solve adjacent but different problems - clamping is a safety rail, auto-scaling is calibration. Use both together if you're working with deltas of unknown or wildly varying origin.

Nothing happens if your delta was already well within range. This node is a no-op (or close to it) on a conditioning that never approached -1 or 1 in the first place, so don't expect a visible difference every time you insert it - it's insurance, not a creative tool.

Categoryconditioning

Inputs (1)

NameTypeDefaultDescription
conditioningCONDITIONING

Outputs (1)

NameTypeDescription
CONDITIONINGCONDITIONING