Skip to content

fix(animation): inkstats final hold from index.json t1 (#4594) - #4965

Merged
cursor[bot] merged 2 commits into
mainfrom
cursor/4594-inkstats-final-hold-37e9
Sep 28, 2026
Merged

cursor[bot] merged 2 commits into
mainfrom
cursor/4594-inkstats-final-hold-37e9

Conversation

@kyle-sexton

Copy link
Copy Markdown
Member

inkstats: count a rotoscope work dir's last hold from index.json

inkstats.py already times intermediate drawings of a rotoscope work dir from consecutive
d/index.json start times. After the last drawing it treated the film like a frame folder and
ended one frame later (t + 1/fps). extract.py stores that last drawing's real end as t1
(and duration): the median hold, or the clip end for a lone drawing. The tail was therefore
counted as on-1s, which undercounted duration, per_second, the on-1s/2s/3s mix, and offstep.

A video still uses decode.end; a frame folder still ends one frame after the last fNNNN.png.
--t still clips the sentinel to the window end.

Animation plugin 0.1.0 → 0.1.1.

Closes #4594

Test plan

  • python3 -m pytest -q plugins/animation/scripts/test_inkstats.py -v (4 passed)
    • last drawing with a 4-frame t1 is 4 frames, not 1
    • lone drawing holds until duration
    • frame folder last hold stays one frame
    • --t window clips the tail
  • scripts/run-ruff.sh check plugins/animation/scripts/inkstats.py plugins/animation/scripts/test_inkstats.py
  • animation plugin 0.1.0 → 0.1.1 with CHANGELOG Fixed entry
Open in Web Open in Cursor 

inkstats timed a rotoscope work dir's last drawing as one frame after its
start. Use d/index.json t1 (duration) so the final hold, duration,
per_second, and on-1s/2s/3s mix match extract.py.

Co-authored-by: Kyle Sexton <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

PR body contract — issue linkage

This PR body does not yet satisfy the issue-linkage contract:

  • Missing a "## Summary" section. Describe what this PR changes and why, in a sentence or two.
  • Missing a "## Fix" section. State the concrete change and how it addresses the problem.
  • Missing a "## Verification" section. Record concrete evidence the change works (commands, gates, output).
  • Missing a "## Related" section. List related PRs, ADRs, or decision-log entries this PR does not close.

Edit the body and this comment updates itself on the next run.

@cursor
cursor Bot marked this pull request as ready for review September 28, 2026 04:57
@cursor
cursor Bot merged commit ba8e08a into main Sep 28, 2026
3 checks passed
@cursor
cursor Bot deleted the cursor/4594-inkstats-final-hold-37e9 branch September 28, 2026 05:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

animation: inkstats undercounts the final hold of a rotoscope work dir

2 participants