0
$\begingroup$

I'm having trouble to find a way to set the interpolation before a keyframe. For example, this is useful if you want to animation to continue before the first frame and after the last frame to get correct motion blur.

I haven't found a way in the UI either, as setting the interpolation to linear is not acting the way I want.

Is there a way to do this?

Attaced is an example from Nuke where the interpolation is set to linear before the keyframe (which makes the animation continue). enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ Between keyframes is interpolation, before and beyond is extrapolation. blender.stackexchange.com/questions/163045/… $\endgroup$ Commented Sep 22, 2020 at 20:11
  • $\begingroup$ Thanks a lot, it works :) $\endgroup$ Commented Sep 22, 2020 at 20:49

1 Answer 1

1
$\begingroup$

Just to follow up with the help from @batFINGER:

import bpy o = bpy.context.selected_objects[0] for fc in o.animation_data.action.fcurves: fc.extrapolation = 'LINEAR' 
$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.