MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / getKeyFrameIndex

Method getKeyFrameIndex

Engine/Knob.cpp:3980–3994  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3978}
3979
3980int
3981KnobHelper::getKeyFrameIndex(ViewSpec view,
3982 int dimension,
3983 double time) const
3984{
3985 assert( 0 <= dimension && dimension < getDimension() );
3986 if ( !canAnimate() || !isAnimated(dimension, view) ) {
3987 return -1;
3988 }
3989
3990 CurvePtr curve = getCurve(view, dimension); //< getCurve will return the master's curve if any
3991 assert(curve);
3992
3993 return curve->keyFrameIndex(time);
3994}
3995
3996void
3997KnobHelper::refreshListenersAfterValueChange(ViewSpec view,

Callers 3

trackMarkerMethod · 0.45
getKeyIndexMethod · 0.45

Calls 2

getDimensionFunction · 0.85
keyFrameIndexMethod · 0.80

Tested by

no test coverage detected