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 Ver
FontPreview LM_FontPreview < 9.5
IsMohoPro bool Added in version 10 10.0
Localize char < 9.5
MeshPreview LM_MeshPreview < 9.5
NewKeyframe void < 9.5
Redraw void Forces the Anime Studio editing window to redraw itself < 9.5

Constants:

3D

Name Description Ver
VECTOR3D_EXTRUDE < 9.5
VECTOR3D_INFLATE < 9.5
VECTOR3D_LATHE < 9.5
VECTOR3D_NONE < 9.5

Blending modes

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

Bone binding

Name Description Ver
FLEXI_BINDING Flexible binding < 9.5
REGION_BINDING Region binding < 9.5

Camera following

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

Channel types

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

Curvature

Name Description Ver
PEAKED Make a corner in a curve as it passes through a point < 9.5
SMOOTH Make a curve smooth as it passes through a point < 9.5

Curve type

Name Description Ver
CURVE_INTERP_LEGACY Legacy curve type < 9.5
CURVE_INTERP_V7 Curve type from version 7 and up < 9.5

Dialog messages

Name Description Ver
MSG_BASE The starting message code for use by Moho scripts < 9.5

Group mask

Name Description Ver
GROUP_MASK_HIDE_ALL Turn on masking, initially hiding all sub-layers < 9.5
GROUP_MASK_NONE No masking < 9.5
GROUP_MASK_SHOW_ALL Turn on masking, initially showing all sub-layers < 9.5

Image sampling

Name Description Ver
SM_BILINEAR Bilinear sampling < 9.5
SM_NEAREST Nearest neighbor sampling < 9.5

Interpolation modes

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

Key selected

Name Description Ver
KEY_SELECTED < 9.5

Layer display quality

Name Description Ver
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 Ver
LT_3D 3D layer type < 9.5
LT_AUDIO Audio layer type < 9.5
LT_BONE Bone layer type < 9.5
LT_GROUP Group layer type < 9.5
LT_IMAGE Image layer type < 9.5
LT_NOTE Note layer type < 9.5
LT_PARTICLE Particle layer type < 9.5
LT_PATCH Patch layer type < 9.5
LT_SWITCH Switch layer type < 9.5
LT_TEXT Text layer type < 9.5
LT_UNKNOWN Unkown layer type < 9.5
LT_VECTOR Vector layer type < 9.5

Layers Window Search Context

Name Description Ver
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 Ver
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 Ver
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 Ver
MM_ADD_MASK Add to the current mask < 9.5
MM_ADD_MASK_INVIS Add to the current mask, but keep invisible < 9.5
MM_CLEAR_ADD_MASK Clear the current mask, then add this layer < 9.5
MM_CLEAR_ADD_MASK_INVIS < 9.5
MM_MASKED Normal masking < 9.5
MM_NOTMASKED No masking < 9.5
MM_SUB_MASK Subtract from current mask < 9.5
MM_SUB_MASK_INVIS Subtract from current mask, but keep invisible < 9.5

Ming

Name Description Ver
MING_VIEW_CAMERA < 9.5
MING_VIEW_DIRECTOR < 9.5
MING_VIEW_PANEL < 9.5

Render styles

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

Shading

Name Description Ver
SHADING_EXTRUDED_EDGE Added in version 11 11.0
SHADING_HATCHED < 9.5
SHADING_NONE < 9.5
SHADING_TOON < 9.5