Module MOHO

MOHO is the module that is a direct interface into Moho (Anime Studio) itself. The objects and functions in the MOHO module allow scripts to create and manipulate layers, vector artwork, bone systems, and more.

Methods:

Name Returns Description Version added
FontPreview LM_FontPreview before 9.5
IsMohoPro bool Added in version 10 10.0
Localize char before 9.5
MeshPreview LM_MeshPreview before 9.5
NewKeyframe void before 9.5
Redraw void Forces the Anime Studio editing window to redraw itself before 9.5

Constants:

3D

Name Description Version added
VECTOR3D_EXTRUDE before 9.5
VECTOR3D_INFLATE before 9.5
VECTOR3D_LATHE before 9.5
VECTOR3D_NONE before 9.5

Blending modes

Name Description Version added
BM_ADD Additive blending before 9.5
BM_COLOR Color blending before 9.5
BM_DIFFERENCE Difference blending before 9.5
BM_HUE Hue blending before 9.5
BM_LUMINOSITY Luminosity blending before 9.5
BM_MULTIPLY Multiply blending before 9.5
BM_NORMAL Normal blending before 9.5
BM_OVERLAY Overlay blending before 9.5
BM_SATURATION Saturation blending before 9.5
BM_SCREEN Screen blending before 9.5

Bone binding

Name Description Version added
FLEXI_BINDING Flexible binding before 9.5
REGION_BINDING Region binding before 9.5

Camera following

Name Description Version added
FC_CAMERA_FREE Rotate on all axes as needed to face the camera before 9.5
FC_CAMERA_X Rotate on the X axis to face the camera before 9.5
FC_CAMERA_Y Rotate on the Y axis to face the camera (this is what the original option allowed) before 9.5
FC_CAMERA_Z Rotate on the Z axis to face the camera before 9.5
FC_NONE Don't rotate to face the camera before 9.5
FC_PLANE_FREE Rotate on all axes as needed to face the camera plane before 9.5
FC_PLANE_X Rotate on the X axis to face the camera plane before 9.5
FC_PLANE_Y Rotate on the Y axis to face the camera plane before 9.5
FC_PLANE_Z Rotate on the Z axis to face the camera plane before 9.5

Channel types

Name Description Version added
CHANNEL_BOOL A boolean (on/off) channel before 9.5
CHANNEL_COLOR A color channel before 9.5
CHANNEL_STRING A string (text) channel before 9.5
CHANNEL_UNKNOWN An unknown type of channel before 9.5
CHANNEL_VAL A single value (floating point) channel before 9.5
CHANNEL_VEC2 A 2D vector channel before 9.5
CHANNEL_VEC3 A 3D vector channel before 9.5

Curvature

Name Description Version added
PEAKED Make a corner in a curve as it passes through a point before 9.5
SMOOTH Make a curve smooth as it passes through a point before 9.5

Curve type

Name Description Version added
CURVE_INTERP_LEGACY Legacy curve type before 9.5
CURVE_INTERP_V7 Curve type from version 7 and up before 9.5

Dialog messages

Name Description Version added
MSG_BASE The starting message code for use by Moho scripts before 9.5

Group mask

Name Description Version added
GROUP_MASK_HIDE_ALL Turn on masking, initially hiding all sub-layers before 9.5
GROUP_MASK_NONE No masking before 9.5
GROUP_MASK_SHOW_ALL Turn on masking, initially showing all sub-layers before 9.5

Image sampling

Name Description Version added
SM_BILINEAR before 9.5
SM_NEAREST before 9.5

Interpolation modes

Name Description Version added
INTERP_BEZIER Bezier interpolation before 9.5
INTERP_BOUNCE Bounce interpolation (added in version 10) 10.0
INTERP_CYCLE Cycle interpolation before 9.5
INTERP_EASE Ease in/out interpolation before 9.5
INTERP_EASE_IN Ease in interpolation before 9.5
INTERP_EASE_OUT Ease out interpolation before 9.5
INTERP_ELASTIC Elastic interpolation (added in version 10) 10.0
INTERP_LINEAR Linear interpolation before 9.5
INTERP_NOISY Noisy interpolation before 9.5
INTERP_POSE Reference an action before 9.5
INTERP_SMOOTH Smooth interpolation before 9.5
INTERP_STEP Step interpolation before 9.5

Key selected

Name Description Version added
KEY_SELECTED before 9.5

Layer display quality

Name Description Version added
LDQ_ANTIALIASING general antialiasing 9.5
LDQ_BRUSHES line brushes 9.5
LDQ_FILLS vector fills 9.5
LDQ_GRAY_UNSELECTED gray out non-selected layers 9.5
LDQ_IMAGES images 9.5
LDQ_IMAGES_HQ high quality images 9.5
LDQ_LABELS labels (like bone names) 9.5
LDQ_MASKING masking effects 9.5
LDQ_OUTLINES vector outlines 9.5
LDQ_SHAPE_EFFECTS fill and line effects 9.5
LDQ_TRANSPARENCY transparency 9.5
LDQ_WIREFRAME construction curves, bones, etc. 9.5

Layer Types

Name Description Version added
LT_3D 3D layer type before 9.5
LT_AUDIO Audio layer type before 9.5
LT_BONE Bone layer type before 9.5
LT_GROUP Group layer type before 9.5
LT_IMAGE Image layer type before 9.5
LT_NOTE Note layer type before 9.5
LT_PARTICLE Particle layer type before 9.5
LT_PATCH Patch layer type before 9.5
LT_SWITCH Switch layer type before 9.5
LT_TEXT Text layer type before 9.5
LT_UNKNOWN Unkown layer type before 9.5
LT_VECTOR Vector layer type before 9.5

Layers Window Search Context

Name Description Version added
LAYERWND_SEARCHCONTEXT_ALL Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_COMMENTSCONTAIN Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_COMPCONTAINS Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_GROUPNAMECONTAINS Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_KINDCONTAINS Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABELIS Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_NAMECONTAINS Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_TAGSCONTAIN Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_TIMELINEVISIBILITYIS Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_VISIBILITYIS Added in version 12.2 12.2

Layers Window Search Context Label Color

Name Description Version added
LAYERWND_SEARCHCONTEXT_LABEL_BLUE Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_CADETBLUE Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_CORAL Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_GRAY Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_GREEN Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_ORANGE Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_PINK Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_PURPLE Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_RED Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_TAN Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_TURQUOISE Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_LABEL_YELLOW Added in version 12.2 12.2

Layers Window Search Context Visibility

Name Description Version added
LAYERWND_SEARCHCONTEXT_VIS_ISNOTVISIBLE Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_VIS_ISORISNOTVISIBILE Added in version 12.2 12.2
LAYERWND_SEARCHCONTEXT_VIS_ISVISIBLE Added in version 12.2 12.2

Masking modes

Name Description Version added
MM_ADD_MASK Add to the current mask before 9.5
MM_ADD_MASK_INVIS Add to the current mask, but keep invisible before 9.5
MM_CLEAR_ADD_MASK Clear the current mask, then add this layer before 9.5
MM_CLEAR_ADD_MASK_INVIS before 9.5
MM_MASKED Normal masking before 9.5
MM_NOTMASKED No masking before 9.5
MM_SUB_MASK Subtract from current mask before 9.5
MM_SUB_MASK_INVIS Subtract from current mask, but keep invisible before 9.5

Ming

Name Description Version added
MING_VIEW_CAMERA before 9.5
MING_VIEW_DIRECTOR before 9.5
MING_VIEW_PANEL before 9.5

Render styles

Name Description Version added
RS_FILL_BACKGROUND before 9.5
RS_FILL_BACKGROUND_SHOWTHROUGH before 9.5
RS_FILL_CHALK before 9.5
RS_FILL_CRAYON before 9.5
RS_FILL_HATCHED before 9.5
RS_FILL_NONE before 9.5
RS_FILL_NORMAL before 9.5
RS_FILL_PEN before 9.5
RS_LAYER_CUTOUT before 9.5
RS_LAYER_HEAVY_OUTLINE before 9.5
RS_LAYER_NORMAL before 9.5
RS_LINE_BLACK before 9.5
RS_LINE_CHALK before 9.5
RS_LINE_CRAYON before 9.5
RS_LINE_NONE before 9.5
RS_LINE_NORMAL before 9.5
RS_LINE_PEN before 9.5
RS_LINE_SKETCHY before 9.5
RS_POSEBM_RELATIVETOCURRENT before 9.5
RS_POSEBM_RELATIVETODEFAULT before 9.5
RS_POSEBM_STANDARD before 9.5

Shading

Name Description Version added
SHADING_EXTRUDED_EDGE Added in version 11 11.0
SHADING_HATCHED before 9.5
SHADING_NONE before 9.5
SHADING_TOON before 9.5