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 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.

Not the answer you're looking for? Browse other questions tagged .