Class M_Shape

Version added: before 9.5
The M_Shape class represents a visible shape in Moho. A shape can either be a fill, an outline, or both.

Methods:

Name Returns Description Version added
AddEdge void Added in version 10 10.0
AllPointsSelected bool before 9.5
ArePropertiesEqual bool Added in version 11 11.0
ColorAtPoint rgb_color Added in version 11 11.0
ContainsEdge bool before 9.5
ContainsPoint bool before 9.5
CopyStyleProperties void Copies the style properties from another shape before 9.5
CountEdges int32 Returns the number of edges that make up this shape before 9.5
CountPoints int32 Added in version 11 11.0
EffectHandle1 LM_Vector2 before 9.5
EffectHandle2 LM_Vector2 before 9.5
GetEdge void Returns information about a specific edge before 9.5
GetPoint int32 Added in version 11 11.0
HasPointColors bool Added in version 11 11.0
HasPositionDependentStyles bool before 9.5
MakePlain void before 9.5
Name char before 9.5
RemoveStyles void Removes all inherited styles from the shape before 9.5
SetName void before 9.5
ShapeBounds void before 9.5
ShapeBounds void before 9.5
ShapeCenter LM_Vector2 before 9.5
ShapeID int32 Added in version 11 11.0

Properties:

Name Type Description Version added
f3DThickness AnimVal before 9.5
fEffectOffset AnimVec2 before 9.5
fEffectRotation AnimVal before 9.5
fEffectScale AnimVal before 9.5
fFillAllowed bool True if a fill is allowed, whether the shape actually has a fill or not. before 9.5
fHasFill bool True if the shape is filled, otherwise false. before 9.5
fHasOutline bool True if the shape has an outline, otherwise false. before 9.5
fHidden bool before 9.5
fInheritedStyle M_Style before 9.5
fInheritedStyle2 M_Style before 9.5
fInheritedStyleName LM_String Starting in AS11, these actually refer to style UUIDs, not names. The variable name here hasn't changed in order to not break the scripting interface. before 9.5
fInheritedStyleName2 LM_String Starting in AS11, these actually refer to style UUIDs, not names. The variable name here hasn't changed in order to not break the scripting interface. before 9.5
fMyStyle M_Style The shape's style properties. The style defines a shape's fill color, line width, etc. before 9.5
fName LM_String Name of the shape. before 9.5
fSelected bool True if the shape is selected, otherwise false. before 9.5