OfxCustomParamInterpFuncV1 — Typedef for functions set as the ::kOfxParamPropCustomInterpCallbackV1 on custom params.
#include "ofxParam.h"
typedef OfxStatus
(OfxCustomParamInterpFuncV1)
(
|
OfxParamSetHandle instance , |
OfxPropertySetHandle inArgs , | |
OfxPropertySetHandle
outArgs
)
;
|
This function allows custom parameters to animate by performing interpolation between keys.
The plugin needs to parse the two strings encoding keyframes on either side of the time we need a value for. It should then interpolate a new value for it, encode it into a string and set the
kOfxParamPropCustomValue
property with this on the outArgs handle.
The interp value is a linear interpolation amount, however his may be derived from a cubic (or other) curve.