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

Properties:

Name Type Description Ver
f3DThickness AnimVal < 9.5
fEffectOffset AnimVec2 < 9.5
fEffectRotation AnimVal < 9.5
fEffectScale AnimVal < 9.5
fFillAllowed bool True if a fill is allowed, whether the shape actually has a fill or not. < 9.5
fHasFill bool True if the shape is filled, otherwise false. < 9.5
fHasOutline bool True if the shape has an outline, otherwise false. < 9.5
fHidden bool < 9.5
fInheritedStyle M_Style < 9.5
fInheritedStyle2 M_Style < 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. < 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. < 9.5
fMyStyle M_Style The shape's style properties. The style defines a shape's fill color, line width, etc. < 9.5
fName LM_String Name of the shape. < 9.5
fSelected bool True if the shape is selected, otherwise false. < 9.5