Script
|
With the Function Curve functions, you can retrieve and modify values in the function curves. More...
#include <funcinterface.h>
Public Slots | |
Func Data | |
int | holdStartFrame (QString columnName) const |
returns the Start value from the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors. | |
int | holdStopFrame (QString columnName) const |
returns the Stop value from the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors | |
int | holdStep (QString columnName) const |
returns the Step value from the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors | |
Functions common to Bezier, Ease and VeloBased | |
int | numberOfPoints (QString columnName) const |
returns the number of keyframes and control points on a curve | |
double | pointX (QString columnName, int point) const |
returns the X value (frame number) of a point on a function curve | |
double | pointY (QString columnName, int point) const |
returns the Y value of a point on a function curve | |
bool | pointConstSeg (QString columnName, int point) const |
returns a 1 (one) to indicate that the point is on a constant segment, or a 0 (zero) to indicate that the point is not on a constant segment | |
QString | pointContinuity (QString columnName, int point) const |
returns the continuity of the curve that follows the point. One of the following values will be returned, in upper-case: SMOOTH, CORNER or STRAIGHT | |
Bezier Func | |
double | pointHandleLeftX (QString columnName, int point) const |
returns the X value of the left handle of a point on a curve | |
double | pointHandleLeftY (QString columnName, int point) const |
returns the Y value of the left handle of a point on a curve. | |
double | pointHandleRightX (QString columnName, int point) const |
returns the X value of the right handle of a point on a curve. | |
double | pointHandleRightY (QString columnName, int point) const |
returns the Y value of the right handle of a point on a curve | |
Ease Func | |
double | pointEaseIn (QString columnName, int point) const |
returns the number of frames in the ease-in | |
double | angleEaseIn (QString columnName, int point) const |
returns the angle of the ease-in handle | |
double | pointEaseOut (QString columnName, int point) const |
returns the number of frames in the ease-out | |
double | angleEaseOut (QString columnName, int point) const |
returns the angle of the ease-out handle | |
Catmull (Path3d) | |
int | numberOfPointsPath3d (QString columnName) const |
returns the number of keyframes and control points on the 3D Path | |
double | pointXPath3d (QString columnName, int point) const |
returns the value of the specified point on the X path | |
double | pointYPath3d (QString columnName, int point) const |
returns the value of the specified point on the Y path | |
double | pointZPath3d (QString columnName, int point) const |
returns the value of the specified point on the Z path | |
double | pointTensionPath3d (QString columnName, int point) const |
returns the tension value for the specified point on the 3D Path | |
double | pointContinuityPath3d (QString columnName, int point) const |
returns the continuity value (STRAIGHT, SMOOTH or CORNER) for the specified point on the 3D Path. | |
double | pointBiasPath3d (QString columnName, int point) const |
returns the bias value for the specified point on the 3D Path | |
double | pointLockedAtFrame (QString columnName, int point) const |
returns the frame at which it's locked, or returns 0 if the point is not locked. | |
Func Edition | |
bool | setHoldStartFrame (QString columnName, int start) |
sets the Start value in the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors | |
bool | setHoldStopFrame (QString columnName, int stop) |
sets the Stop value in the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors | |
bool | setHoldStep (QString columnName, int step) |
sets the Hold value in the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors. | |
bool | setBezierPoint (QString columnName, int frame, double y, double handleLeftX, double handleLeftY, double handleRightX, double handleRightY, bool constSeg, QString continuity) |
sets the values of a point on a Bezier function curve | |
bool | setEasePoint (QString columnName, int frame, double y, double easeIn, double angleEaseIn, double easeOut, double angleEaseOut, bool constSeg, QString continuity) |
sets the values of a point on an Ease function curve | |
bool | setVeloBasedPoint (QString columnName, int frame, double y) |
sets the values of a point on a Velocity-Based function curve | |
bool | addKeyFramePath3d (QString columnName, int frame, double x, double y, double z, double tension, double continuity, double bias) |
adds a keyframe to a 3D Path and sets the X, Y and Z value, as well as the tension, continuity and bias. | |
bool | addCtrlPointAfterPath3d (QString columnName, int point, double x, double y, double z, double tension, double continuity, double bias) |
adds a keyframe after a point on a 3D Path and sets the X, Y and Z values, as well as the tension, continuity and bias | |
bool | removePointPath3d (QString columnName, int point) |
removePointPath3d may be used to remove either a key frame, or a control point | |
bool | setPointPath3d (QString columnName, int point, double x, double y, double z, double tension, double continuity, double bias) |
setPointPath3d may be used to set values in either a key frame, or a control point, but cannot change a key frame into a control point or a control point into a key frame. To change a key frame into a control point or a control point into a key frame, you must remove the point and add a new point. | |
bool | setPath3dPointConstantSegment (QString columnName, int point, bool constant) |
sets the constant segment flag of point i of path p to b. | |
bool | setPath3dPointConstantSegmentForFrame (QString columnName, double point, bool constant) |
sets the constant segment flag of point found at frame f of path p to b. | |
With the Function Curve functions, you can retrieve and modify values in the function curves.
|
slot |
adds a keyframe after a point on a 3D Path and sets the X, Y and Z values, as well as the tension, continuity and bias
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
x,: | x value for the point |
y,: | Y value for the point |
z,: | z value for the point |
tension,: | tension value of the keyframe |
continuity,: | continuity value of the keyframe |
bias,: | bias value of the keyframe |
|
slot |
adds a keyframe to a 3D Path and sets the X, Y and Z value, as well as the tension, continuity and bias.
columnName,: | The name of the column |
frame,: | Frame number for the point |
x,: | x value for the point |
y,: | Y value for the point |
z,: | z value for the point |
tension,: | tension value of the keyframe |
continuity,: | continuity value of the keyframe |
bias,: | bias value of the keyframe |
|
slot |
returns the angle of the ease-in handle
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the angle of the ease-out handle
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the Start value from the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors.
columnName,: | The name of the column |
|
slot |
returns the Step value from the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors
columnName,: | The name of the column |
|
slot |
returns the Stop value from the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors
columnName,: | The name of the column |
|
slot |
returns the number of keyframes and control points on a curve
columnName,: | The name of the column |
|
slot |
returns the number of keyframes and control points on the 3D Path
columnName,: | The name of the column |
|
slot |
returns the bias value for the specified point on the 3D Path
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns a 1 (one) to indicate that the point is on a constant segment, or a 0 (zero) to indicate that the point is not on a constant segment
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the continuity of the curve that follows the point. One of the following values will be returned, in upper-case: SMOOTH, CORNER or STRAIGHT
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the continuity value (STRAIGHT, SMOOTH or CORNER) for the specified point on the 3D Path.
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the number of frames in the ease-in
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the number of frames in the ease-out
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the X value of the left handle of a point on a curve
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the Y value of the left handle of a point on a curve.
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the X value of the right handle of a point on a curve.
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the Y value of the right handle of a point on a curve
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the frame at which it's locked, or returns 0 if the point is not locked.
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the tension value for the specified point on the 3D Path
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the X value (frame number) of a point on a function curve
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the value of the specified point on the X path
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the Y value of a point on a function curve
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the value of the specified point on the Y path
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
returns the value of the specified point on the Z path
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
removePointPath3d may be used to remove either a key frame, or a control point
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
|
slot |
sets the values of a point on a Bezier function curve
columnName,: | The name of the column |
frame,: | Frame number for the point |
y,: | Y value for the poin |
handleLeftX,: | X value for the left handle of the point |
handleLeftY,: | Y value for the left handle |
handleRightX,: | X value for the right handle |
handleRightY,: | Y value for the right handle |
constSeg,: | Boolean expression (with a true or false value) to indicate whether the segment is constant or interpolated |
continuity,: | String value for the continuity of the point. The string must be in all upper-case. The following are the acceptable values: STRAIGHT, SMOOTH and CORNER |
|
slot |
sets the values of a point on an Ease function curve
columnName,: | The name of the column |
frame,: | Frame number for the point |
y,: | Y value for the point |
easeIn,: | The number of frames in the ease-in |
angleEaseIn,: | The angle of the ease-in handle |
easeOut,: | The number of frames in the ease-out |
angleEaseOut,: | The angle of the ease-out handle |
constSeg,: | Boolean expression (with a true or false value) to indicate whether the segment is constant or interpolated |
continuity,: | String value for the continuity of the point. The string must be in all upper-case. The following are the acceptable values: STRAIGHT, SMOOTH and CORNER |
|
slot |
sets the Start value in the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors
columnName,: | The name of the column |
start,: | start frame of the hold |
|
slot |
sets the Hold value in the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors.
columnName,: | The name of the column |
step,: | value of the steps in the hold. |
|
slot |
sets the Stop value in the Hold Value Editor dialog box, for Bezier, Ease and Velo-based Function Editors
columnName,: | The name of the column |
stop,: | stop frame of the hold |
|
slot |
sets the constant segment flag of point i of path p to b.
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
constant | : bool flag |
|
slot |
sets the constant segment flag of point found at frame f of path p to b.
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
constant | : bool flag |
|
slot |
setPointPath3d may be used to set values in either a key frame, or a control point, but cannot change a key frame into a control point or a control point into a key frame. To change a key frame into a control point or a control point into a key frame, you must remove the point and add a new point.
columnName,: | The name of the column |
point | : The number of the point on the curve, from 0 to n, where n is the total number of points. The last point on the curve is n-1. |
x,: | x value for the point |
y,: | Y value for the point |
z,: | z value for the point |
tension,: | tension value of the keyframe |
continuity,: | continuity value of the keyframe |
bias,: | bias value of the keyframe |
|
slot |
sets the values of a point on a Velocity-Based function curve
columnName,: | The name of the column |
frame,: | Frame number for the point |
y,: | Y value for the point |