Nodes/comfyui-moonpack/Frame Mask Generator
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.

By moonwhaler·Created about a year ago·Updated 25 days ago· 15
Frame Mask Generator
    • schedule
    • total_frames
    modelinear_loop
    total_frames81
    fade_frames15
    custom_keyframes
    CategoryMoonPack/video

    Inputs (4)

    NameTypeDefaultDescription
    modeCOMBOlinear_looplinear_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_framesINT811–100000Total length in frames.
    fade_framesINT150–10000Length of each fade ramp (auto-clamped to total_frames/2).
    custom_keyframesoptSTRINGUsed only when mode='custom'. A trailing comma is added if missing.

    Outputs (2)

    NameTypeDescription
    scheduleSTRING
    total_framesINT