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 of M_Shape:
Name | Returns | Description | Ver |
AddEdge | void | Added in version 10 | 10 |
AllPointsSelected | bool | < 9.5 | |
AllPointsSelected | bool | Added in version 14.0 | 14.0 |
ArePropertiesEqual | bool | Added in version 11 | 11 |
BottomOfCluster | M_Shape | Added in version 14.0 | 14.0 |
ColorAtPoint | rgb_color | Added in version 11 | 11 |
ContainsCurve | bool | Added in version 14.0 | 14.0 |
ContainsEdge | bool | < 9.5 | |
ContainsPoint | bool | < 9.5 | |
ContinuousTriangulation | bool | 13.5.2 | |
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 |
EdgeBounds | LM_BBox | Added in version 14.0 | 14.0 |
EffectHandle1 | Vector2 | < 9.5 | |
EffectHandle2 | Vector2 | < 9.5 | |
GetEdge | void | Returns information about a specific edge | < 9.5 |
GetPoint | int32 | Added in version 11 | 11 |
HasPointColors | bool | Added in version 11 | 11 |
HasPositionDependentStyles | bool | < 9.5 | |
IsInCluster | bool | Added in version 14.0 | 14.0 |
MakePlain | void | Removes all applied effects/styles and not-basic customized properties from a shape. | < 9.5 |
Name | char | < 9.5 | |
NextInCluster | M_Shape | Added in version 14.0 | 14.0 |
PreviousInCluster | M_Shape | Added in version 14.0 | 14.0 |
RemoveStyles | void | Removes all inherited styles from the shape | < 9.5 |
SelectAllPoints | void | Added in version 14.0 | 14.0 |
SetName | void | < 9.5 | |
ShapeBounds | LM_BBox | Added in version 14.0 | 14.0 |
ShapeBounds | void | < 9.5 | |
ShapeBounds | void | < 9.5 | |
ShapeCenter | Vector2 | < 9.5 | |
ShapeID | int32 | Added in version 11 | 11 |
TopOfCluster | M_Shape | Added in version 14.0 | 14.0 |
Properties of M_Shape:
Name | Type | Description | Ver |
f3DThickness | AnimVal | < 9.5 | |
fComboBlend | AnimVal | Added in version 14.0 | 14.0 |
fComboMode | int32 | Added in version 14.0. See MOHO combo constants. | 14.0 |
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 | 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 | 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 | String | Name of the shape. | < 9.5 |
fSelected | bool | True if the shape is selected, otherwise false. | < 9.5 |