Nodes/RES4LYF/ClownOptions Frameweights
ComfyUI Node Runs on cloud

ClownOptions Frameweights

Shape guidance across the frames of a video

By ClownsharkBatwing·Created 2 years ago·Updated 18 days ago· 1,222
ClownOptions Frameweights
  • frame_weights
  • options
  • options
config_nameframe_weights
dynamicsease_out
schedulemoderate_early
scale0.50
reversefalse
custom_string

When you're generating video with a model like Wan, you often don't want every frame treated identically. Maybe the first frame should hew hard to a reference and later frames should loosen up, or the effect of a guide should fade in over the clip. This node builds a per-frame weight curve and hands it to the RES4LYF sampler, so the strength of whatever it's modulating rises and falls across the timeline instead of staying flat.

RES4LYF's video features lean on this - the pack supports temporal conditioning (a different prompt per frame) and frame-by-frame control on Wan, and frame weights are how you dictate the shape of that over time. Think of it as an envelope for the video, like automation on an audio track.

How it works

Rather than making you hand-draw a curve, this node generates one from a few descriptive settings - pick an overall dynamic (ease in, ease out, a hump in the middle, etc.), a schedule (front-loaded or back-loaded, fast or slow), and a scale, and it produces the weight envelope. That curve is packaged into an OPTIONS object the sampler applies across the frames. If you'd rather supply your own numbers, you can - there's an input for a raw curve and one for a custom string.

The inputs that matter

  • config_name (default frame_weights) - what the curve targets: frame_weights, its inverse (frame_weights_inv), or frame_targets.
  • dynamics (default ease_out) - the curve shape: constant, linear, ease_out, ease_in, middle (peak in the center), or trough (dip in the center). This is the big lever on how the envelope feels.
  • schedule (default moderate_early) - where the action concentrates in time: moderate/fast/slow crossed with early/late.
  • scale (default 0.5) - overall intensity of the envelope, 0 to 1.
  • reverse (default false) - flip the curve back-to-front.

Optional inputs: frame_weights (SIGMAS) to feed an explicit curve, custom_string for a hand-typed pattern, and the usual options chain input. Output is options (OPTIONS) to the sampler.

Installing RES4LYF

ComfyUI Manager: search RES4LYF, install, restart. Or clone:

cd ComfyUI/custom_nodes
git clone https://github.com/ClownsharkBatwing/RES4LYF
pip install -r RES4LYF/requirements.txt

Portable users use the embedded pip under python_embedded/Scripts/. Restart, hard-refresh with F5. No model downloads - but obviously you need a video model (Wan) loaded for any of this to matter.

Common issues

No effect on a still image. This is a video/temporal tool. On a single-frame generation there are no frames to weight, so it does nothing. Use it with Wan or another video model.

The motion feels wrong. Start by swapping dynamics before touching anything else - ease_out vs ease_in vs middle changes the whole character. Then adjust schedule for timing and scale for intensity. Change one at a time; stacking all three blind makes it impossible to tell what did what.

Curve is backwards. Use reverse rather than rebuilding it. And note config_name's _inv option is another way to flip the relationship.

Ignored downstream. Standard rule: the options output must reach a RES4LYF sampler's options input to take effect.

CategoryRES4LYF/sampler_options

Inputs (8)

NameTypeDefaultDescription
config_nameCOMBOframe_weightsApply to specific type of per-frame weights.
dynamicsCOMBOease_outThe function type used for the dynamic period. constant: no change, linear: steady change, ease_out: starts fast, ease_in: starts slow
scheduleCOMBOmoderate_earlyfast_early: fast change starts immediately, slow_late: slow change starts later
scaleFLOAT0.500–1The amount of change over the course of the frame weights. 1.0 means that the guides have no influence by the end.
reverseBOOLEANfalseReverse the frame weights
frame_weightsoptSIGMASOverrides all other settings EXCEPT reverse.
custom_stringoptSTRINGOverrides all other settings EXCEPT reverse.
optionsoptOPTIONS

Outputs (1)

NameTypeDescription
optionsOPTIONS