2026-01-23 13:26:31 +08:00
2026-01-23 13:25:51 +08:00
2026-01-23 13:25:51 +08:00
2026-01-23 13:26:31 +08:00

README.md

ComfyUI-PainterFrameMath

Aligns any input frame number to the nearest 4N+1 format (e.g., 120→121, 122→125), ensuring compatibility with video generation models that require specific frame count constraints.

Input

  • frame_number (INT): Input frame count from upstream node (force input)

Output

  • aligned_frame (INT): Frame count rounded up to nearest 4N+1 value

Example

Input: 120 → Output: 121
Input: 122 → Output: 125
Input: 124 → Output: 125
Input: 125 → Output: 125

Installation

  1. Place PainterFrameMath.py and __init__.py in ComfyUI/custom_nodes/ComfyUI-PainterFrameMath/
  2. Restart ComfyUI
  3. Find node in Prince category
S
Description
No description provided
Readme
30 KiB
Languages
Python 100%