ClownOptions Frameweights
Shape guidance across the frames of a video
- frame_weights
- options
- options
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(defaultframe_weights) - what the curve targets:frame_weights, its inverse (frame_weights_inv), orframe_targets.dynamics(defaultease_out) - the curve shape:constant,linear,ease_out,ease_in,middle(peak in the center), ortrough(dip in the center). This is the big lever on how the envelope feels.schedule(defaultmoderate_early) - where the action concentrates in time:moderate/fast/slowcrossed withearly/late.scale(default0.5) - overall intensity of the envelope, 0 to 1.reverse(defaultfalse) - 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.
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| config_name | COMBO | frame_weights | Apply to specific type of per-frame weights. |
| dynamics | COMBO | ease_out | The function type used for the dynamic period. constant: no change, linear: steady change, ease_out: starts fast, ease_in: starts slow |
| schedule | COMBO | moderate_early | fast_early: fast change starts immediately, slow_late: slow change starts later |
| scale | FLOAT | 0.500–1 | The amount of change over the course of the frame weights. 1.0 means that the guides have no influence by the end. |
| reverse | BOOLEAN | false | Reverse the frame weights |
| frame_weightsopt | SIGMAS | Overrides all other settings EXCEPT reverse. | |
| custom_stringopt | STRING | Overrides all other settings EXCEPT reverse. | |
| optionsopt | OPTIONS | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| options | OPTIONS | — |