Class M_Point

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

Methods:

Name Returns Description Version added
CountCurves int32 Returns the number of curves that pass through the point before 9.5
Curve M_Curve, int32 Returns a curve that passes through the point before 9.5
FlipControlHandles void Added in version 12 12.0
GetEndpointEdge void Returns which curve, and which segment of that curve, this point is an endpoint of before 9.5
IsEndpoint bool Tests whether this point is the endpoint of a curve before 9.5
IsPointOnCurve bool before 9.5
ResetControlHandles void Added in version 12 12.0
SetCurvature void Sets the curvature of all curves that pass through this point before 9.5
SetPos void Set the position of the point at a given time before 9.5

Properties:

Name Type Description Version added
fAnimPos AnimVec2 the point's position animation channel before 9.5
fColor AnimColor Added in version 11 11.0
fColored bool Added in version 11 11.0
fColorStrength AnimVal Added in version 11 11.0
fHidden bool Added in version 10 10.0
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. before 9.5
fPos LM_Vector2 the point's current position before 9.5
fPrevSelected bool true if the point was previously selected, otherwise false before 9.5
fSelected bool true if the point is selected, otherwise false before 9.5
fTempPos LM_Vector2 a temporary variable for storing position, useful when transforming points before 9.5
fTempWidth real a temporary variable to store line width before 9.5
fWidth AnimVal the width of curves that pass through this point (-1 means that curves aren't affected by variable width) before 9.5