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 | int32 | Returns the number of curves that pass through the point | < 9.5 |
Curve | M_Curve, int32 | Returns a curve that passes through the point | < 9.5 |
FlipControlHandles | void | Added in version 12 | 12 |
GetEndpointEdge | int32, int32 | Returns which curve, and which segment of that curve, this point is an endpoint of | < 9.5 |
IsEndpoint | bool | Tests whether this point is the endpoint of a curve | < 9.5 |
IsPointOnCurve | bool | < 9.5 | |
ResetControlHandles | void | Added in version 12 | 12 |
SetCurvature | void | Sets the curvature of all curves that pass through this point | < 9.5 |
SetPos | 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 |
fColored | bool | Added in version 11 | 11 |
fColorStrength | AnimVal | Added in version 11 | 11 |
fHidden | bool | Added in version 10 | 10 |
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 |
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 |