Nodes/ComfyUI-SD-CN-Animation/SD-CN Motion Control
ComfyUI Node

SD-CN Motion Control

Controls motion in the Txt2Vid pipeline. Modifies FloweR's predicted optical flow and applies spatial transforms to influence animation direction and speed.

By pxl-pshr·Created 4 months ago·Updated 4 months ago· 10
SD-CN Motion Control
    • motion_ctrl
    occlusion_multiplier10.0
    flow_scale1.00
    pan_x0.0
    pan_y0.0
    zoom1.000
    rotate0.0
    CategorySD-CN-Animation

    Inputs (6)

    NameTypeDefaultDescription
    occlusion_multiplierFLOAT10.00–50Amplifies occlusion mask. Higher = more of each frame gets regenerated by SD. Default 10.0 matches standard behavior.
    flow_scaleFLOAT1.000–3Multiplier on predicted optical flow magnitude. <1 = slower motion, >1 = exaggerated motion.
    pan_xFLOAT0.0-20–20Horizontal drift in pixels/frame added to flow. Positive = pan right.
    pan_yFLOAT0.0-20–20Vertical drift in pixels/frame added to flow. Positive = pan down.
    zoomFLOAT1.0000.9–1.1Per-frame scale factor. >1 = zoom in, <1 = zoom out. Subtle values like 1.005 work best.
    rotateFLOAT0.0-5–5Degrees/frame rotation applied to the prediction.

    Outputs (1)

    NameTypeDescription
    motion_ctrlMOTION_CTRL