Skip to content

add: animation curves support#4164

Draft
Gavin-Niederman wants to merge 6 commits into
GraphiteEditor:masterfrom
Gavin-Niederman:add/animation-curves
Draft

add: animation curves support#4164
Gavin-Niederman wants to merge 6 commits into
GraphiteEditor:masterfrom
Gavin-Niederman:add/animation-curves

Conversation

@Gavin-Niederman

@Gavin-Niederman Gavin-Niederman commented May 23, 2026

Copy link
Copy Markdown

A work-in-progress PR adding support for f-curves and a timeline NodeInput variant.

TODO:

  • AnimationCurve (f-curves implementation based on Blender's system)
  • Timeline NodeInput variant.
  • Store timeline curves in document

Note

the replace_timeline_inputs_with_nodes function was mostly written with AI (Opus 4.8). I have thoroughly reviewed it and tested it.

Demo

demo.mp4

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces an AnimationCurve implementation, featuring keyframe-based interpolation (Linear, Constant, and Bezier) and integration into the node graph system via new nodes and registry updates. Review feedback suggests refining the evaluation logic to clamp out-of-bounds values to the nearest keyframe for better consistency and optimizing keyframe insertion using binary search to improve performance and data validation.

Comment thread node-graph/libraries/core-types/src/animation.rs
Comment thread node-graph/libraries/core-types/src/animation.rs Outdated
Comment thread node-graph/libraries/core-types/src/animation.rs Outdated
@Keavon

Keavon commented May 23, 2026

Copy link
Copy Markdown
Member

Note: I rebased your branch.

@Keavon

Keavon commented Jun 8, 2026

Copy link
Copy Markdown
Member

Hey, just checking in on the latest with this, thanks!

@Gavin-Niederman

Copy link
Copy Markdown
Author

Hey, just checking in on the latest with this, thanks!

I haven't been able to do any development in a bit but im going to start working on this again now!

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.

2 participants