ComfyUI Node
Frame Mask Generator
Generates kjnodes-style fade mask schedules for several common patterns: linear loop, ping-pong, ease-in-out, fade-in, fade-out, or pass-through custom keyframes.
Frame Mask Generator
- schedule
- total_frames
◄modelinear_loop►
◄total_frames81►
◄fade_frames15►
◄custom_keyframes►
CategoryMoonPack/video
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| mode | COMBO | linear_loop | linear_loop: 1→0 then 0→1 with held middle. ping_pong: 1→0→1. ease_in_out: 0→1→0 with mid-fade stops. fade_in: 0→1 then hold. fade_out: hold then 1→0. custom: pass custom_keyframes through. |
| total_frames | INT | 811–100000 | Total length in frames. |
| fade_frames | INT | 150–10000 | Length of each fade ramp (auto-clamped to total_frames/2). |
| custom_keyframesopt | STRING | Used only when mode='custom'. A trailing comma is added if missing. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| schedule | STRING | — |
| total_frames | INT | — |