interpPlugins/interpFlat.cpp
#include <maya/MFnAnimCurve.h>
#include <maya/MPxAnimCurveInterpolator.h>
#include <maya/MTime.h>
#include "interpFlat.h"
interpFlat::interpFlat() {}
interpFlat::~interpFlat() {}
void* interpFlat::creator()
{
return new interpFlat();
}
void interpFlat::initialize(
const MObject &animCurve,
unsigned int interval)
{
fObj = animCurve;
fInterval = interval;
}
double interpFlat::evaluate(
const MTime &val)
{
return curveFn.value(fInterval);
}