Apple Shake 4 User Manual
Page 946

946
Chapter 31
Expressions and Scripting
The following expressions provide functions for curve analysis.
CSpline(cycle,
value@key1,
value@key2,
...)
Cardinal-spline interpolation, also known as Catmull-Rom splines.
CSplineV(time_value, cycle,
value@key1,
value@key2,
...)
Cardinal-spline interpolation, also known as Catmull-Rom splines.
JSpline(cycle,
value@key1,
value@key2,
...)
Jeffress-spline interpolation.
JSplineV(time_value, cycle,
value@key1,
value@key2,
...)
Jeffress-spline interpolation.
NSpline(cycle,
value@key1,
value@key2,
...)
Natural-spline interpolation.
NSplineV(time_value, cycle,
value@key1, value@key2,...)
Natural-spline interpolation.
Hermite(cycle,
[value,tangent1,tangent2]@key1,
[value,tangent1,tangent2]@key2,
...)
Hermite-spline interpolation.
HermiteV(time_value, cycle,
[value,tangent1,tangent2]@key1,
[value,tangent1,tangent2]@key2,
...)
Hermite-spline interpolation.
Curve Functions
Definition
Function
Definition
getCurveMinMax(int minOrMax,
int begFrame, int endFrame,
float curveCurrentValue, const
char *curveName);
Float. Returns the min or max value of the specified curve (plug)
over the specified frame range. If minOrMax is set to 0, then it
returns the min value. If minOrMax is set to 1, then it returns the
max value.
getCurveAvg(int begFrame, int
endFrame, float
curveCurrentValue, const char
*curveName);
Float. Returns the average value of the specified curve over the
specified frame range.