Plotting interpolation

I was experimenting to see what the effect of different interpolations would be on a simple real value, ranging from 0.0 on the left to 1000.0 on the right, over 100 frames.

My idea was

  1. create a .sif file which just made a rectangle grow from 0px wide to 1000px, over 100 frames
  2. use a Python script to modify that .sif file to change the left and right interpolations
  3. run Synfig on that .sif file, obtaining 100 .png files
  4. check them all, again with Python, to see how wide the rectangle is

Somewhat to my surprise, I find that TCB and clamped are effectively the same as linear, which makes me think I’ve messed up somewhere:

Or have I been misunderstanding the way TCB and clamped are supposed to work?

Hacky code and results here: Marnanel Thurman / interpolation-test · GitLab

1 Like

TCB and Clamped are basically same. They both create smooth curves. The only exception with TCB is that you can manipulate Tension, Continuity and Bais manually.
And Linear is totally different than TCB/Clamped. You should have used 3 waypoints to understand the graphs properly.

1 Like

You should have used 3 waypoints to understand the graphs properly.

Can you elaborate? Would I need to plot n**3 graphs, where n is the number of waypoint types?

(Presumably n=4, if Clamped and TCB are so similar.)

This wiki page has all the information you need.
Waypoint - Synfig Animation Studio

2 Likes