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 AddEdge(curveID, segID) | void | Added in version 10 | 10.0 |
| AllPointsSelected AllPointsSelected() | bool | < 9.5 | |
| AllPointsSelected AllPointsSelected() | bool | Added in version 14.0 | 14.0 |
| ArePropertiesEqual ArePropertiesEqual(shape) | bool | Added in version 11 | 11.0 |
| BottomOfCluster BottomOfCluster() | M_Shape | Added in version 14.0 | 14.0 |
| ColorAtPoint ColorAtPoint(pos) | rgb_color | Added in version 11 | 11.0 |
| ContainsCurve ContainsCurve(curveID) | bool | Added in version 14.0 | 14.0 |
| ContainsEdge ContainsEdge(curveID, segID) | bool | < 9.5 | |
| ContainsPoint ContainsPoint(pointID) | bool | < 9.5 | |
| ContinuousTriangulation ContinuousTriangulation() | bool | 13.5.2 | |
| CopyStyleProperties CopyStyleProperties(fromShape, skipFill, skipLine) | void | Copies the style properties from another shape | < 9.5 |
| CountEdges CountEdges() | int32 | Returns the number of edges that make up this shape | < 9.5 |
| CountPoints CountPoints() | int32 | Returns the number of points in the shape | 11.0 |
| EdgeBounds EdgeBounds(edgeID) | BBox | Added in version 14.0 | 14.0 |
| EffectHandle1 EffectHandle1() | Vector2 | < 9.5 | |
| EffectHandle2 EffectHandle2() | Vector2 | < 9.5 | |
| GetEdge GetEdge(edgeID, curveID, segID) | void | Returns information about a specific edge | < 9.5 |
| GetPoint GetPoint(pointID) | int32 | Added in version 11 | 11.0 |
| HasPointColors HasPointColors() | bool | Added in version 11 | 11.0 |
| HasPositionDependentStyles HasPositionDependentStyles(fillOrStroke) | bool | < 9.5 | |
| IsInCluster IsInCluster() | bool | Added in version 14.0 | 14.0 |
| MakePlain MakePlain() | void | Removes all applied effects/styles and not-basic customized properties from a shape. | < 9.5 |
| Name Name() | char | < 9.5 | |
| NextInCluster NextInCluster() | M_Shape | Added in version 14.0 | 14.0 |
| PreviousInCluster PreviousInCluster() | M_Shape | Added in version 14.0 | 14.0 |
| RemoveStyles RemoveStyles() | void | Removes all inherited styles from the shape | < 9.5 |
| SelectAllPoints SelectAllPoints() | void | Added in version 14.0 | 14.0 |
| SetName SetName(name) | void | < 9.5 | |
| ShapeBounds ShapeBounds(min, max) | void | < 9.5 | |
| ShapeBounds ShapeBounds(min, max, frame) | void | < 9.5 | |
| ShapeBounds ShapeBounds() | BBox | Added in version 14.0 | 14.0 |
| ShapeCenter ShapeCenter() | Vector2 | < 9.5 | |
| ShapeID ShapeID() | int32 | Added in version 11 | 11.0 |
| TopOfCluster 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 |