Class M_Point

Version added: before 9.5
The M_Point class represents a single control point in a 2D vector layer.

Methods of M_Point:

Name Returns Description Ver
CountCurves CountCurves() int32 Returns the number of curves that pass through the point < 9.5
Curve Curve(id, where) int32, M_Curve Returns a curve that passes through the point < 9.5
FlipControlHandles FlipControlHandles(frame) void Flips the control handles 12.0
GetEndpointEdge GetEndpointEdge(curveID, segID) int32, int32 Returns which curve, and which segment of that curve, this point is an endpoint of < 9.5
IsEndpoint IsEndpoint() bool Tests whether this point is the endpoint of a curve < 9.5
IsPointOnCurve IsPointOnCurve(curveID, where) bool Tests whether this point is located on a curve < 9.5
ResetControlHandles ResetControlHandles(frame) void Resets the control handles 12.0
SetCurvature SetCurvature(curvature, frame) void Sets the curvature of all curves that pass through this point < 9.5
SetPos SetPos(pos, frame) void Set the position of the point at a given time < 9.5

Properties of M_Point:

Name Type Description Ver
fAnimPos AnimVec2 the point's position animation channel < 9.5
fColor AnimColor Added in version 11 11.0
fColorDrift AnimVal Added in version 14.3 14.3
fColored bool Added in version 11 11.0
fColorStrength AnimVal Added in version 11 11.0
fHidden bool Added in version 10 10.0
fOpacity AnimVal Added in version 14.3 14.3
fParent int32 id number of the parent bone this point is bound to. A value of -1 means the point is not bound to any bone. A value of -2 means the point is flexi-bound to all bones in the parent layer. < 9.5
fPos Vector2 the point's current position < 9.5
fPrevSelected bool true if the point was previously selected, otherwise false < 9.5
fSelected bool true if the point is selected, otherwise false < 9.5
fTempColorDrift real Added in version 14.3 14.3
fTempOpacity real Added in version 14.3 14.3
fTempPos Vector2 a temporary variable for storing position, useful when transforming points < 9.5
fTempWidth real a temporary variable to store line width < 9.5
fWidth AnimVal the width of curves that pass through this point (-1 means that curves aren't affected by variable width) < 9.5