Extrapolate filter

Neill3d edited this page Oct 6, 2014 · 1 revision

Plug-in filter to perform extrapolation of the animation node curves. Supported algorithms are constant, linear and quadratic Polynomial extrapolation.

By default, the type of extrapolation is linear, which is equal to “Keep Slope” type in Mobu.

Description

Area - number of keys to capture for extrapolation algorithm

Pre Enabled – enabled/disabled pre extrapolation

Pre Count – number of pre-extrapolated keys

Pre Type – type of the pre extrapolation

Post Enabled – enabled/disabled post extrapolation

Post Count - number of post-extrapolated keys

Post Type – type of the post extrapolation

Python usage sample

from pyfbsdk import *
list = FBModelList()
FBGetSelectedModels(list)
for obj in list:
  # Create a Key Extrapolate filter.
  lFilter = FBFilterManager().CreateFilter( 'Extrapolate' )
  if lFilter:
    lFilter.PropertyList.Find( 'Pre Enabled' ).Data = True
    lFilter.Apply( obj.Translation.GetAnimationNode(), True )

TODO

  • Property enums such as extrapolation type is not displayed in the user interface and are not recognized by Python.
  • Polynomial extrapolation is not so good, it's not stable and not very predictable. Perhaps the algorithm should be replaced altogether if possible. May be my version of Gauss poly_fit is not very good.
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.