Moho Studio MCP

v3.1.1
io.github.SavasTanriverdi/moho-studio-mcp Checked 1 day ago Published 21 hours ago

MCP server and Lua plugin for 2D animation, rigging, lip-sync, glTF, and CLI render in Moho 14.4

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

moho_status

Check live Moho Pro 14.4 connectivity, plugin version, active document, active layer, frame, active action, Layer Comp count, and exporter path.

moho_activatePoller

Locate the custom MohoStudioMCP Poller teal-star icon in Moho Pro 14.4's toolbar via PrintWindow and click it in the background (PostMessage) without moving the user's mouse cursor or stealing window focus. Also runs automatically if any live RPC stalls for >1.1s.

moho_apiInspect

Inspect live Lua 5.4 classes, methods, tolua++ .get/.set properties, and constants exposed by Moho 14.4 (e.g. MOHO, LM, moho, document, layer, M_Bone, M_Mesh).

ParameterTypeDescription
filterstringOptional case-insensitive substring filter
limitnumberMaximum entries to return (default: 250)
targetstringGlobal or MOHO/LM class name (default: 'MOHO')

lua_execute

Execute Lua 5.4 code live inside Moho Pro 14.4 with `moho`, `helpers`, `json`, `delaunay`, and `args` in scope. Guarded by pcall + optional PrepMultiUndo and captures print() logs.

ParameterTypeDescription
code *stringLua 5.4 chunk to execute; `return <value>` sends JSON back
argsobjectOptional JSON object exposed as `args` inside the chunk
undobooleanWrap in PrepMultiUndo before running (default: true)

document_getInfo

Get open document metadata (name, path, dimensions, FPS, frame range, current frame, layer counts, Layer Comp count, active doc action, background color).

document_new

Create a brand-new Moho document and optionally configure dimensions, FPS, frame range, and background color.

ParameterTypeDescription
backColorobjectRGBA color object using either 0..255 byte values or 0.0..1.0 normalized floats
endFramenumberTimeline end frame (default: 240)
fpsnumberFrames per second (default: 24)
heightnumberCanvas height in pixels (default: 1080)
startFramenumberTimeline start frame (default: 1)
widthnumberCanvas width in pixels (default: 1920)

document_open

Open an existing .moho project file from disk live inside Moho.

ParameterTypeDescription
path *stringAbsolute file path to the .moho project

document_save

Save the currently open Moho document in place.

document_saveAs

Save the currently open Moho document to a specific file path.

ParameterTypeDescription
path *stringDestination .moho file path

document_close

Close the currently active Moho document tab cleanly (auto-saves if it has a path to prevent blocking Save prompts).

ParameterTypeDescription
forcebooleanAllow closing an untitled document without saving (default: false)
saveFirstbooleanSave before closing to avoid blocking Save dialogs (default: true)
savePathstringOptional path to FileSaveAs before closing an untitled document

document_undo

Undo or Redo one or more steps in the open Moho document.

ParameterTypeDescription
modestringDefault: 'undo'
stepsnumberNumber of steps (1..50, default: 1)

document_setSettings

Modify open document dimensions, FPS, start/end frames, background color (LM.rgb_color via verified SetBackCol), or Depth of Field.

ParameterTypeDescription
backColorobjectRGBA color object using either 0..255 byte values or 0.0..1.0 normalized floats
dofobjectGuarded Depth of Field settings if exposed by active Moho version
endFramenumberPlayback/render end frame
fpsnumberDocument frame rate (FPS)
heightnumberCanvas height in pixels
startFramenumberPlayback/render start frame
widthnumberCanvas width in pixels

document_import

Import a PNG/JPG/WebP image directly as a live ImageLayer, import SVG headlessly through Moho 14.4 SS_SVGImport (with scaling/consolidation controls), or import PSD/Moho files via FileImport.

ParameterTypeDescription
path *stringAbsolute file path to import
asImageLayerbooleanCreate an ImageLayer and call SetSourceImage (default true for raster images)
expandGroupsbooleanFor .svg via SS_SVGImport: expand imported group hierarchy
minifybooleanFor .svg via SS_SVGImport: enable layer consolidation (default: true)
minifyGroupsbooleanFor .svg via SS_SVGImport: ungroup single-child groups
minifyLayersbooleanFor .svg via SS_SVGImport: combine adjacent vector layers
minifyLayersUnnamedbooleanFor .svg via SS_SVGImport: consolidate only unnamed layers
modenumberMoho FileImport mode (default 0)
namestringOptional layer name for imported ImageLayer
parentLayerIdnumberOptional parent Group/Bone layer ID
parentLayerNamestringOptional parent Group/Bone layer name
recenterbooleanFor .svg via SS_SVGImport: recenter artwork in canvas
requireSvgBridgebooleanReturn an error instead of falling back to FileImport if SS_SVGImport fails
scaleModestringFor .svg via SS_SVGImport: canvas-fit or asset-relative scaling preset
useNativeSvgImportbooleanForce Moho's legacy FileImport instead of SS_SVGImport for .svg

document_setFrame

Move Moho's timeline to a specific frame number.

ParameterTypeDescription
frame *numberTarget frame number (0 for setup frame, >= 1 for animation)

document_renderFrame

Render a specific frame live via Moho's FileRender engine and return the PNG.

ParameterTypeDescription
framenumberFrame number to render (defaults to current frame)
outputPathstringOptional PNG output path (defaults to temp folder)
restoreFramebooleanRestore timeline to prior frame after rendering (default: true)
returnImagebooleanInclude base64 PNG image content in MCP response (default: true)

document_renderRange

Render a PNG frame sequence across a frame range live from the open Moho document (auto-creates outputDir).

ParameterTypeDescription
outputDir *stringDirectory where PNG frames will be written
endFramenumberLast frame to render (defaults to document endFrame)
prefixstringFilename prefix (default: 'frame_')
startFramenumberFirst frame to render (defaults to document startFrame)
stepnumberFrame stride (default: 1)

document_captureWindow

Capture the primary visible Moho Pro 14 application window (viewport, timeline, layers, toolbar) as PNG (Win32 PrintWindow on Windows, screencapture on macOS).

ParameterTypeDescription
outputPathstringOptional PNG path to save the screenshot

document_cliRender

Run Moho Pro 14.4's multi-threaded, GPU-accelerated headless CLI renderer (`Moho -r`) on any saved `.moho` file to export PNG sequences, MP4, MOV, AnimatedGIF, PSD, or SVG with optional Layer Comp filtering without blocking the Moho GUI.

ParameterTypeDescription
projectPath *stringAbsolute path to saved .moho project file
addLayerCompSuffixbooleanAppend Layer Comp name to output filenames
antiAliasingbooleanEnable anti-aliasing (default: true)
createFoldersForLayerCompsbooleanCreate separate subfolders per Layer Comp
endFramenumberLast frame to render (-end)
extraSmoothbooleanEnable extra-smooth image sampling (default: true)
formatstringOutput format (PNG, MP4, MOV, AnimatedGIF, JPEG, BMP, TGA, PSD, SVG; default: PNG)
halfFpsbooleanRender at half frame rate
halfSizebooleanRender at 50% width and height
layerCompstringRender only a specific Layer Comp by name (-layercomp)
layerEffectsbooleanRender layer effects like shadows and blur (default: true)
multithreadbooleanEnable multi-threaded rendering
outputDirstringOutput folder (-outfolder); auto-created if missing
outputFilestringExplicit output file path (-o) instead of outputDir
premultiplybooleanPremultiply alpha channel (default: true)
returnImagebooleanIf true and PNG was produced, include first PNG frame in MCP response (default: false)
shapeEffectsbooleanRender shape effects like Soft Edge and Gradients (default: true)
startFramenumberFirst frame to render (-start)
timeoutMsnumberRender timeout in ms (default: 180000)

document_exportGltf

Headless Moho Pro 14.4 glTF 2.0 / GLB export wrapping Tool/ss_gltf_export.lua (bypasses SS_glTFExportDialog:DoModal safely). Run rig_auditGltf first to check for animated vectors without Warp Layers or non-in-place Actions.

ParameterTypeDescription
commentstringOptional glTF asset metadata comment
copyrightstringOptional glTF asset copyright notice
fbfbooleanBake every frame into glTF keyframes (preserves dynamics/Smart Bones; default: false)
fbfStepnumberKeyframe interval step when fbf=true (1..999, default: 1)
fileNamestringOutput base filename without extension (defaults to document name)
flipZOrderbooleanInvert layer Z stacking order (default: false)
formatstringOutput container format (default: 'glb')
gridDensitynumberMesh polygon resolution 1..100 (default: 20)
outputDirstringDestination folder (required if document is unsaved; auto-created if missing)
reRenderstringRe-render layer textures mode (default: 'none')
scalenumberTexture scaling factor 0.1..10.0 (default: 1.0 = 100%)
zOffsetnumberZ-offset factor between stacked layers 0.1..100 (default: 1)

rig_auditGltf

Read-only pre-flight audit of the open Moho document for glTF 2.0 export readiness: detects animated vector layers missing Warp Layers, active bone dynamics needing fbf baking, non-in-place Actions, unsaved document state, and gltf_* layer userTags.

ParameterTypeDescription
inPlaceTolerancenumberMax allowed root translation drift in Regular Actions before flagging warning (default: 0.15)

rig_audit

Read-only Moho Pro 14.4 Rig Health Linter: checks for non-zero strength on Pin Bones / IK Targets / Smart Bone dials, rigid-bound GroupLayers trapping bone-bound children, Animated Layer Order collisions across multiple Smart Bone Actions, BoneLayers stuck in an active Action, unbound artwork under BoneLayers, and missing pre-roll for active Bone Dynamics or ParticleLayers.

ParameterTypeDescription
checkDynamicsPreRollbooleanFlag active Bone Dynamics or ParticleLayers when document startFrame <= 1 (default: true)
checkUnboundArtworkbooleanFlag Vector/Image child layers under a BoneLayer without explicit rigid, flexi-subset, or point binding (default: true)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
strengthEpsilonnumberThreshold above which control-bone strength is reported as an error (default: 0.001)

rig_getControls

Read-only Puppet Control Surface inspector for any Moho character rig: call this BEFORE animating an existing character to discover all Smart Bone Dials (with exact angle sweeps, limits, and inferred roles like blink/mouth/body_turn), Foot/Hand IK Targets, Pin Bones, SwitchLayer controls, Vitruvian Bone groups, and Regular Actions in one call.

ParameterTypeDescription
framenumberFrame at which to sample current dial angles, IK positions, and active switch children (default: current frame)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

layercomp_list

List all Layer Comps in the open document along with their member layers.

layercomp_manage

Create, update layer membership, apply, rename, additively show/hide, snapshot visible layers, expose on timeline, or delete Layer Comps.

ParameterTypeDescription
operation *stringLayer Comp operation to execute
clearFirstbooleanClear prior layers before adding (for set_layers, default: true)
exclusivebooleanFor expose_timeline: hide non-comp layers from timeline (default: false)
framenumberFrame for apply/show/hide/snapshot_visible operations
includeChildrenbooleanRecursively include descendant layers of specified Group/Bone/Switch layers (default: true)
indexnumberZero-based Layer Comp index (alternative selector to name)
layerIdsarrayLayer IDs to include (for create/set_layers)
layerNamesarrayLayer names to include (for create/set_layers)
namestringLayer Comp name (target for all operations, or new name for create/snapshot_visible)
newNamestringNew Layer Comp name (required for rename)
shownbooleanFor expose_timeline: show (true) or hide (false) comp layers on timeline (default: true)

layer_list

Return the full recursive layer tree with IDs, UUIDs, types, masking, warp/curver flags, bone counts, Vitruvian group counts, and active switch children.

layer_getProperties

Inspect transform, opacity, visibility, blur, origin, blending mode, masking mode, bone parent, tags/comments, and image/warp info of a layer.

ParameterTypeDescription
framenumberFrame at which to sample animated properties (default: current frame)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

layer_create

Create a new layer live inside Moho (vector, image, bone, group, switch, framebyframe, particle, patch, text, note, audio). For framebyframe, auto-creates an initial child vector frame unless createInitialFrame=false.

ParameterTypeDescription
type *stringMoho layer type to create
createInitialFramebooleanFor type='framebyframe': auto-create initial vector child layer (default: true)
editOnlybooleanMark layer as edit-only guide (excluded from render)
initialFrameNamestringFor type='framebyframe': initial child vector layer name (default: 'Frame 1')
insertAtTopbooleanInsert at top of parent group instead of bottom (default: true)
namestringLayer display name
noteTextstringText content when type='note'
parentLayerIdnumberOptional parent Group/Bone/Switch layer ID
parentLayerNamestringOptional parent Group/Bone/Switch layer name
sourceImagestringImage file path when type='image'

layer_delete

Delete a layer by ID, name, or UUID (undoable).

ParameterTypeDescription
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

layer_duplicate

Duplicate a layer (or create a live Moho Referenced Layer when asReference=true).

ParameterTypeDescription
asReferencebooleanCreate a synced Moho Reference Layer instead of an independent copy (default: false)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
newNamestringOptional name for the duplicated or referenced layer

layer_reparent

Move a layer into a Group/Bone/Switch/Particle layer or reorder it behind or in front of another layer.

ParameterTypeDescription
behindLayerIdnumberPlace immediately behind this sibling layer ID
behindLayerNamestringPlace immediately behind this sibling layer name
inFrontOfLayerIdnumberPlace immediately in front of this sibling layer ID
inFrontOfLayerNamestringPlace immediately in front of this sibling layer name
insertAtTopbooleanInsert at top of parent group when using parentLayerId/Name (default: true)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
parentLayerIdnumberDestination Group/Bone/Switch layer ID
parentLayerNamestringDestination Group/Bone/Switch layer name

layer_select

Make a layer the active selection in Moho.

ParameterTypeDescription
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

layer_setProperties

Modify layer transform, parallax Z (with preserveApparentSize), timingOffset, shownOnTimeline, immuneToDof, Layer FX (colorize/outline/shadow/shading), vectorNoise, opacity, blur, blendingMode, and metadata.

ParameterTypeDescription
additiveCyclebooleanEnable additive cycle accumulation
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
blendingModeBlending mode name (e.g. 'multiply', 'screen', 'add') or numeric code
blurnumberRaw document-unit blur radius (prefer blurPx for pixel units)
blurPxnumberLayer blur radius in pixels (converted via moho:PixelToDoc)
colorTagnumberKeyframe color tag index (InterpSetting.tags)
colorizeobjectLayer Colorize tint overlay
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
depthSortbooleanTrigger FullDepthSort on Group or DepthSort on document
editOnlybooleanShow in editor only (omit from renders)
flipHbooleanFlip layer horizontally
flipVbooleanFlip layer vertically
framenumberTarget frame for keyframed properties (default: current frame)
holdnumberFrames to hold prior value before interpolating
immuneToDofbooleanExclude layer from project Depth of Field blur
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
labelColornumberLayer panel label color tag index (0..11)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
lockedbooleanLock layer against accidental edits
namestringNew layer name
opacitynumberLayer opacity (0.0 .. 1.0)
originobjectLayer pivot origin {x, y}
outlineobjectLayer Outline stroke effect
preserveApparentSizebooleanAuto-adjust X/Y and scale when translation.z changes (Moho Alt+Shift parallax)
renderOnlybooleanInclude in renders only (hide in editor)
rotationXnumber3D X tilt rotation in degrees
rotationYnumber3D Y turn rotation in degrees
rotationZnumber2D Z rotation in degrees
scaleobjectLayer scale {x, y, z}
shadingobjectLayer inner shading effect
shadowobjectLayer drop shadow effect
shownOnTimelinebooleanPin layer visibly on the timeline
staggerbooleanEnable Moho Stagger step interpolation flag
timingOffsetnumberSequencer frame offset
translationobjectLayer translation {x, y, z}
userCommentsstringLayer user comments
userTagsstringLayer metadata tags (including gltf_* export tags)
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)
vectorNoiseobjectVectorLayer procedural line/fill boil noise settings
visiblebooleanLayer visibility toggle (keyframed at frame)

layer_bindToBone

Rigid-bind a layer to one bone (`boneId`, or -1 to unbind) OR flexi-bind it to an exact subset of bones (`flexiBoneIds`) with optional elbow smooth-joint binding (`elbowBind`).

ParameterTypeDescription
boneIdnumberRigid-bind layer to one parent bone index (-1 to unbind)
elbowBindbooleanMark flexi-bone subset for smooth joint / elbow deformation
flexiBoneIdsarrayFlexi-bind layer to an explicit subset of bone indices
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

layer_setWarpLayer

Link (or unlink when warpLayerId/Name omitted) a Smart Warp or Curver VectorLayer to a target layer.

ParameterTypeDescription
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
warpLayerIdnumberSmart Warp or Curver VectorLayer ID to assign (omit to unlink)
warpLayerNamestringSmart Warp or Curver VectorLayer name to assign (omit to unlink)

layer_setMasking

Configure Group masking (`groupMask` or one-shot `preset: 'mask_inside_bottom'`) and per-layer masking (`maskingMode`, `expandByPixel`, guarded `excludeStrokes`).

ParameterTypeDescription
excludeStrokesbooleanExclude strokes from mask if exposed by active Moho version
expandByPixelbooleanExpand mask by one pixel to prevent seam halos
groupMaskstringGroup-level masking mode (requires Group/Bone/Switch/Particle layer)
invisibleMaskbooleanUse add_mask_invis for bottom layer with mask_inside_bottom preset
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
maskingModestringPer-layer masking role inside a masked group
presetstringOne-shot setup: group hide_all, bottom child add_mask, siblings masked

layer_setLayerOrder

Inspect or keyframe Animated Layer Order (`GroupLayer:EnableLayerOrdering` / `GetLayerOrdering`) on a Group/Bone/Switch layer at any frame (works inside Smart Bone Actions).

ParameterTypeDescription
additiveCyclebooleanEnable additive cycle accumulation
allowPartialbooleanAuto-append omitted children keeping relative order (default: true)
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
colorTagnumberKeyframe color tag index (InterpSetting.tags)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
enabledbooleanEnable/disable Animated Layer Order
framenumberFrame to inspect or keyframe layer order (default: current frame)
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
moveLayerIdnumberRelative move: child layer ID
moveLayerNamestringRelative move: child layer name
orderarrayChild layer names, IDs, or UUIDs (bottom-to-top unless topToBottom=true)
positionstringRelative move target
referenceLayerIdnumberReference sibling layer ID for position='above' or 'below'
referenceLayerNamestringReference sibling layer name for position='above' or 'below'
staggerbooleanEnable Moho Stagger step interpolation flag
topToBottombooleanInterpret `order` array as top-to-bottom instead of bottom-to-top
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)

layer_convertType

Convert a Group, Bone, or Switch layer to another container type preserving children, transforms, animation channels, masking, Layer Order, and Layer Comp membership.

ParameterTypeDescription
targetType *stringTarget container layer type
deleteOriginalbooleanDelete source layer after copying children/channels (default: true)
frameByFramebooleanEnable Frame-by-Frame when targetType='switch'
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
newNamestringName for converted layer when deleteOriginal=false

layer_groupSelection

Wrap multiple existing layers into a new Group, Bone, or Switch container preserving stacking order, with optional masking preset.

ParameterTypeDescription
expandByPixelbooleanEnable 1px mask expansion on children when applying masking
groupMaskstringOptional group masking mode
groupTypestringContainer type to create (default: 'group')
invisibleMaskbooleanUse invisible bottom mask when applying maskPreset
layerIdsarrayLayer IDs to wrap inside the new group
layerNamesarrayLayer names to wrap inside the new group
maskPresetstringOptional masking preset applied immediately to the new group
namestringName of the new container layer

layer_followPath

Attach/detach a layer along a VectorLayer curve with optional Alt-bend (`bendLayer`) and keyframeable `percent` progress.

ParameterTypeDescription
additiveCyclebooleanEnable additive cycle accumulation
bendLayerbooleanDeform layer along the path curve (Moho Alt-bend)
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
colorTagnumberKeyframe color tag index (InterpSetting.tags)
curveIndexnumberZero-based curve index in followLayer (default: 0)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
detachbooleanDetach layer from its current path
followLayerIdnumberVectorLayer ID providing the path curve
followLayerNamestringVectorLayer name providing the path curve
framenumberFrame for keyframing `percent` progress (default: current frame)
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
percentnumberPosition percentage along curve (0.0 .. 1.0+)
staggerbooleanEnable Moho Stagger step interpolation flag
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)

layer_referenceManage

Inspect status, break link, sync/update (`MohoLayerRefSyncOptions`), mark outdated, or import external Moho Referenced Layers.

ParameterTypeDescription
operation *stringReference layer management operation
addNewLayersbooleanSync flag: add new layers from source (default: true)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
modenumberFallback FileImport mode
pathstringSource .moho path for import_reference
removeMissingLayersbooleanSync flag: remove deleted layers (default: true)
replaceMismatchedBonesbooleanSync flag: replace mismatched bone layers (default: true)
replaceMismatchedVectorsbooleanSync flag: replace mismatched vector layers (default: true)

layer_renderImage

Render a single isolated layer directly to a transparent PNG via Moho 14.4 RenderLayerImage and return its world bounds and image.

ParameterTypeDescription
embedColorProfilebooleanEmbed ICC color profile in rendered PNG
framenumberFrame to render (default: current frame)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
maxDimensionnumberMaximum pixel dimension (default: 2048)
minDimensionnumberMinimum pixel dimension (default: 512)
outputPathstringOptional destination PNG path
returnImagebooleanInclude base64 PNG in MCP response (default: true)
trimResultbooleanTrim transparent padding around layer bounds (default: false)

switch_setActive

Inspect or keyframe active child layers on a SwitchLayer (single frame or explicit keyframes array, Frame-by-Frame flag, vector sub-layer interpolation). For Papagayo .dat or Rhubarb JSON lip-sync files, use switch_importLipSync.

ParameterTypeDescription
childNamestringChild layer name to activate at `frame`
framenumberTarget frame to read or keyframe (defaults to current frame)
frameByFramebooleanToggle Frame-by-Frame layer flag
interpModebooleanEnable smooth vector interpolation between switch children
keyframesarrayOptional batch of { frame, childName } switch keyframes
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

switch_importLipSync

Import Papagayo (.dat MohoSwitch1), Rhubarb Lip Sync JSON (mouthCues), or explicit phoneme cues onto a SwitchLayer with optional Preston Blair mapping, fallback child, frame offset, and missing-child reporting.

ParameterTypeDescription
allowFrame0booleanAllow writing or clearing Frame 0 setup key (default: false)
caseInsensitivebooleanMatch SwitchLayer child names case-insensitively (default: true)
clearExistingbooleanDelete existing switch keyframes at frame >= clearFromFrame before importing (default: false; Frame 0 is preserved)
clearFromFramenumberFirst frame to clear when clearExisting=true (default: 1)
cuesarrayExplicit array of { frame or timeSec, phoneme } entries (alternative to filePath/data)
datastringInline Papagayo MohoSwitch1 text or Rhubarb JSON text (alternative to filePath)
dedupeAdjacentbooleanSkip consecutive cues that resolve to the same child layer (default: true)
fallbackChildstringFallback child layer name (e.g. 'rest') when a cue phoneme has no matching child
filePathstringPath on disk to a Papagayo .dat or Rhubarb .json lip-sync file
formatstringInput format parser (default: 'auto')
fpsnumberFrame rate used to convert timeSec/start seconds to frames (defaults to document FPS)
frameOffsetnumberFrame offset added to parsed cues (defaults to 0 for frame-based Papagayo, 1 for time-based Rhubarb so 0.0s lands on Frame 1)
interpModebooleanOptional toggle for smooth vector sub-layer interpolation
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
phonemeMapobjectCustom dictionary mapping source phoneme names to SwitchLayer child names (overrides preset)
presetstringBuilt-in phoneme mapping preset: 'rhubarb_to_preston_blair' maps A->MBP, B->etc, C->E, D->AI, E->O, F->U, G->FV, H->L, X->rest (default: 'none')

fbf_manage

Author Frame-by-Frame (FBF) animation on a SwitchLayer: list_timeline, add_blank_frame, duplicate_frame (new copy), clone_frame (reuse existing drawing), delete_frame, and push_frames (shift exposure timing).

ParameterTypeDescription
operation *stringFBF operation to execute
autoEnableFbfbooleanAutomatically enable IsFBFLayer flag on mutating ops (default: true)
deleteLayerbooleanFor delete_frame: also delete child layer if no other keys reference it (default: false)
deltanumberFor push_frames: positive or negative frame shift
framenumberTarget frame for add/duplicate/clone/delete (defaults to current frame)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
namestringOptional child layer name for add_blank_frame / duplicate_frame
sourceChildNamestringSource child layer name for duplicate_frame / clone_frame
sourceFramenumberSource frame for duplicate_frame / clone_frame
startFramenumberFor push_frames: first frame to shift

particle_configure

Inspect or configure Moho Pro ParticleLayer emission, velocity, direction, acceleration, damping, source dimensions, and simulation flags (read-only when no mutating fields are passed; returns full 18-field state).

ParameterTypeDescription
accelerationDegnumberAcceleration/gravity direction in degrees
accelerationRatenumberAcceleration magnitude
dampingnumberAir resistance / velocity damping
directionDegnumberEmission direction angle in degrees
directionSpreadDegnumberEmission cone spread angle in degrees
emitInOrderbooleanCycle through child layers sequentially instead of randomly
evenlySpacedbooleanEmit particles at uniform intervals
framenumberFrame for reading/keying the `running` track (default: 0)
freeFloatingbooleanDetach emitted particles from emitter layer movement
fullSpeedStartbooleanPre-populate particles at frame 0
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
lifetimenumberParticle lifetime in frames (0 = infinite)
numParticlesnumberTotal particle count
orientationbooleanOrient particles along travel direction
playbackTimeShiftnumberPlayback time offset in frames
previewCountnumberViewport preview particle count
previewPercentagenumberPreview percentage (0..100)
randomSeednumberDeterministic integer random seed
randomStartTimebooleanRandomize child animation start frame per particle
runningbooleanTurn particle emitter on or off at `frame`
sourceDimensionsobjectEmitter box dimensions in document units
useBaseLayerAsSourcebooleanEmit particles from vertices of the bottom vector child layer
velocitynumberInitial launch velocity
velocitySpreadnumberRandom velocity spread

bone_list

List all bones in a BoneLayer with world head/tail positions, local transforms, parent links, IK targets, constraints, shy flag, and Moho 14 dynamics.

ParameterTypeDescription
framenumberFrame at which to sample bone transforms (default: current frame)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

bone_create

Create a new bone in a BoneLayer from world-space (headX/Y -> tailX/Y), geometry-snapped refs (headRef/tailRef), or parent-local (x/y, angleDeg, length).

ParameterTypeDescription
angleDegnumberParent-local bone angle in degrees
headRefobjectSnap bone endpoint to a layer anchor, vector point, or shape centroid (auto-transformed into BoneLayer space)
headXnumberWorld-space bone head X coordinate
headYnumberWorld-space bone head Y coordinate
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
lengthnumberBone length (0 creates a Pin Bone)
namestringBone name
parentBoneIdnumberParent bone index (-1 for root bone)
parentBoneNamestringParent bone name (alternative to parentBoneId)
pinBonebooleanCreate a zero-length Pin Bone (fLength=0, default strength=0)
scalenumberInitial bone scale at frame 0 (default: 1)
strengthnumberBone influence strength radius (set 0 for control/pin/IK target bones)
tagsnumberMoho bone color tag index (0..11)
tailRefobjectSnap bone endpoint to a layer anchor, vector point, or shape centroid (auto-transformed into BoneLayer space)
tailXnumberWorld-space bone tail X coordinate
tailYnumberWorld-space bone tail Y coordinate
xnumberParent-local bone head X (alternative to headX/headRef)
ynumberParent-local bone head Y (alternative to headY/headRef)

bone_createSmartDial

One-shot studio Smart Bone Dial builder (mirrors Moho Bone > Make Smart Bone Dial): creates a zero-strength, labeled, color-tagged, IK-ignored dial bone beside the character with angle limit wedges and its 96-frame linear Smart Bone Action(s) (<name>, plus <name> 2 when bidirectional=true) for Blink, Mouth, Head Turn, Body Turn, Eyebrows, or Hand controls.

ParameterTypeDescription
name *stringDial bone and primary Smart Bone Action name (e.g. 'Blink', 'Mouth Open', 'Body Turn')
addMidpointKeybooleanIn 360 mode, add a midpoint +/-180 deg linear key (default: true)
bidirectionalbooleanCreate two opposing Smart Bone Actions (<name> and <name> 2) with symmetric angle limits (default: false)
clockwisebooleanIn 360 mode, sweep -360 deg instead of +360 deg when deltaAngleDeg omitted
colorTagnumberMoho bone color tag index (default: 1 = red studio dial)
deltaAngleDegnumberPrimary action rotation delta in degrees from restAngleDeg (default: +90, or +/-360 in 360 mode)
durationnumberSmart Bone Action length in frames (default: 96)
enableConstraintsbooleanEnable red angle-limit wedges on the dial bone (default: true for standard mode)
interpolationstringDriving bone keyframe interpolation inside the Smart Bone Action (default: 'linear')
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
leaveActivestringLeave 'first' (<name>) or 'second' (<name> 2) Action active for immediate pose authoring, or 'none' to return to Mainline (default: 'none')
lengthnumberDial bone length in document units (default: 0.22)
maxDegnumberMaximum angle constraint limit in degrees relative to rest angle
minDegnumberMinimum angle constraint limit in degrees relative to rest angle
mirrorFrame0ToEndbooleanMirror Frame 0 transforms/points to endFrame (default: true for 360 mode, false for standard)
modestringStandard constrained dial or unwrapped +/-360-degree turnaround dial (default: 'standard')
parentBoneIdnumberOptional parent control-panel root bone ID (-1 for unparented)
parentBoneNamestringOptional parent control-panel root bone name
restAngleDegnumberNeutral Frame-0 bone angle in degrees (default: 90, pointing straight up)
secondDeltaAngleDegnumberSecondary '<name> 2' rotation delta in degrees when bidirectional=true (default: -90)
showLabelbooleanDisplay bone name label beside dial in Moho viewport (default: true)
sidestringSide of the character for auto-layout when x/y omitted (default: 'right')
xnumberOptional explicit local X position (omit to auto-stack in a side control panel beside the character)
ynumberOptional explicit local Y position (omit to auto-stack beside the character)

bone_delete

Delete a bone by index or name from a BoneLayer.

ParameterTypeDescription
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

bone_setTransform

Set/keyframe a bone's position (x, y), angleDeg, scale, flipH/V, parentBoneId/Name, or targetBone/Name at a frame with optional interpolation.

ParameterTypeDescription
additiveCyclebooleanEnable additive cycle accumulation
angleDegnumberLocal bone rotation angle in degrees
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
colorTagnumberKeyframe color tag index (InterpSetting.tags)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
flipHbooleanFlip bone horizontally
flipVbooleanFlip bone vertically
framenumberTarget frame (default: current frame)
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
parentBoneIdnumberAnimated parent bone index (-1 to unparent)
parentBoneNamestringAnimated parent bone name ('' to unparent)
scalenumberBone length scale multiplier
staggerbooleanEnable Moho Stagger step interpolation flag
targetBonenumberIK target bone index (-1 to clear)
targetBoneNamestringIK target bone name ('' to clear)
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)
xnumberLocal bone X position
ynumberLocal bone Y position

bone_setProperties

Update bone name, length (0 for Pin Bone), strength, offset, flipH/V, parentBoneId/Name, IK targetBone/Name, ignoredByIK, fixedAngle, shy, showLabel, or color tags.

ParameterTypeDescription
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
fixedAnglebooleanKeep bone angle independent of parent rotation
flipHbooleanHorizontal flip state
flipVbooleanVertical flip state
framenumberFrame for animated properties like targetBone/flip (default: 0)
ignoredByIKbooleanExclude bone from IK chain solving
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
lengthnumberBone length (0 for Pin Bone)
namestringNew bone name
offsetobjectOffset Bone vector (fOffset)
parentBoneIdnumberParent bone index (-1 for root)
parentBoneNamestringParent bone name ('' for root)
showLabelbooleanShow bone name label in viewport
shybooleanHide bone when Shy Bones toggle is active
strengthnumberBone influence strength radius (0 for control/pin/IK target bones)
tagsnumberMoho bone color tag index (0..11)
targetBonenumberIK target bone index (-1 to clear)
targetBoneNamestringIK target bone name ('' to clear)

bone_setConstraints

Configure bone angle limits, angle/pos/scale delayed control constraints (single bone or chainBoneIds/Names), squash&stretch, maxIKStretching, and arcSolver.

ParameterTypeDescription
angleControlDelaynumberAngle control frame delay
angleControlParentnumberDriver bone ID for angle control constraint (-1 to clear)
angleControlParentNamestringDriver bone name for angle control constraint
angleControlScalenumberAngle control multiplier
arcSolverbooleanEnable Moho Arc IK solver
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
chainBoneIdsarrayApply delayed follow-through constraints across a bone chain by ID
chainBoneNamesarrayApply delayed follow-through constraints across a bone chain by name
chainDelaynumberPer-link frame delay applied across chain bones
chainModestringChannels linked in chain mode (default: 'angle')
chainScalenumberControl scale applied across chain bones
controlParentIdnumberOptional shared control parent ID for chain mode (defaults to each bone's parent)
controlParentNamestringOptional shared control parent name for chain mode
enabledbooleanEnable or disable angle rotation limits
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
maxAutoScalingnumberAlias for maxIKStretching
maxDegnumberMaximum angle limit in degrees (relative to rest angle)
maxIKStretchingnumberMaximum IK bone auto-stretching factor (fMaxAutoScaling)
minDegnumberMinimum angle limit in degrees (relative to rest angle)
posControlDelaynumberPosition control frame delay
posControlParentnumberDriver bone ID for position control constraint (-1 to clear)
posControlParentNamestringDriver bone name for position control constraint
posControlScalePosition control scale {x, y} or uniform number
scaleControlDelaynumberScale control frame delay
scaleControlParentnumberDriver bone ID for scale control constraint (-1 to clear)
scaleControlParentNamestringDriver bone name for scale control constraint
scaleControlScalenumberScale control multiplier
squashStretchbooleanEnable Squash & Stretch scaling (fScalingMode=2)
squashStretchScalingnumberSquash & stretch scaling factor

bone_setDynamics

Configure Moho Pro 14 Bone Dynamics physics (enabled, angle/pos/scale/wind flags, torque, spring, damping, 3-axis weights, plus optional global enableBoneDynamics).

ParameterTypeDescription
anglebooleanEnable rotational bone dynamics (fAngleDynamics)
angleWeightnumberAngle dynamics mass weight
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
dampingnumberAngle dynamics damping force
enableBoneDynamicsbooleanToggle global MOHO.MohoGlobals.EnableBoneDynamics
enabledbooleanEnable/disable dynamics on this bone (fBoneDynamics)
framenumberFrame to keyframe `enabled` (default: 0)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
posbooleanEnable translational bone dynamics (fPosDynamics)
posDampingnumberPosition dynamics damping force
posSpringnumberPosition dynamics spring force
posTorquenumberPosition dynamics torque force
posWeightnumberPosition dynamics mass weight
scalebooleanEnable squash/scale bone dynamics (fScaleDynamics)
scaleDampingnumberScale dynamics damping force
scaleSpringnumberScale dynamics spring force
scaleTorquenumberScale dynamics torque force
scaleWeightnumberScale dynamics mass weight
springnumberAngle dynamics spring force
torquenumberAngle dynamics torque force
windbooleanAllow BoneLayer wind field to push this bone (fWindDynamics)

bone_mirror

Duplicate and mirror a bone or bone subtree across an X/Y axis preserving hierarchy, constraints, dynamics, offsets, and remapped IK targets.

ParameterTypeDescription
axisstringMirror axis (default: 'x')
axisValuenumberAxis coordinate to mirror across (default: 0)
boneIdnumberZero-based bone index inside the BoneLayer
boneIdsarrayExplicit list of bone IDs to mirror
boneNamestringExact bone name
boneNamesarrayExplicit list of bone names to mirror
findSubstringstringExplicit substring to replace in mirrored bone names
includeChildrenbooleanInclude descendant bones recursively (default: true)
keepExternalTargetsbooleanPreserve IK targets pointing outside the mirrored subtree (default: false)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
mirrorConstraintsbooleanCopy and mirror angle limits & control constraints (default: true)
mirrorParentbooleanKeep parent link to root's parent when outside mirrored subtree (default: true)
mirrorTargetsbooleanRemap IK target bones within mirrored subtree (default: true)
replaceSubstringstringReplacement substring for findSubstring (e.g. 'R' for 'L')

bone_freezePose

Freeze Pose (Ctrl+F) or Reset Pose at `frame` across all, selected, non-shy, or listed bones with optional keyframe interpolation.

ParameterTypeDescription
additiveCyclebooleanEnable additive cycle accumulation
allowFrame0booleanAllow freeze at frame 0 (default: false)
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
boneIdsarrayOptional explicit bone IDs to freeze or reset
boneNamesarrayOptional explicit bone names to freeze or reset
channelsarrayChannels to freeze/reset (default: ['angle', 'pos', 'scale'])
colorTagnumberKeyframe color tag index (InterpSetting.tags)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
deleteKeysbooleanIn reset mode at frame > 0, delete keyframes instead of keying frame-0 values
framenumberTarget frame to freeze or reset (default: current frame)
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
modestringDefault: 'freeze'
scopestringTarget bone scope when boneIds/Names omitted (default: 'all')
staggerbooleanEnable Moho Stagger step interpolation flag
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)

bone_listGroups

List all Moho 14 Vitruvian Bone groups (M_BoneGroup) on a BoneLayer and their active bones.

ParameterTypeDescription
framenumberFrame at which to read active Vitruvian bone (default: current frame)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

bone_manageGroup

Create, switch active sub-rig bone, add/remove bones, or delete Moho 14 Vitruvian Bone groups.

ParameterTypeDescription
operation *stringVitruvian Bone group operation
activeLocalIndexnumberZero-based index inside the group (for set_active)
boneIdnumberBone ID to activate inside group (for set_active)
boneIdsarrayBone indices to group, add, or remove
boneNamestringBone name to activate inside group (for set_active)
enabledbooleanEnable or disable Vitruvian group hiding
framenumberFrame to keyframe active Vitruvian bone (for set_active)
groupIndexnumberZero-based Vitruvian group index
groupNamestringVitruvian group name (new name for create, lookup for other ops)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

bone_setWind

Configure Moho Pro 14 Wind and Gravity dynamics fields on a BoneLayer (supports UI percentage units via *Percent or raw internal units, plus keyframe interpolation).

ParameterTypeDescription
additiveCyclebooleanEnable additive cycle accumulation
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
colorTagnumberKeyframe color tag index (InterpSetting.tags)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
framenumberTarget frame for wind/gravity keyframes (default: current frame)
gravityDirectionDegnumberGravity direction angle in degrees (default downward: 270)
gravityStrengthnumberRaw internal gravity strength (prefer gravityStrengthPercent: 100 = 1G -> raw 10)
gravityStrengthPercentnumberGravity strength on Moho UI percentage scale (100 = 1G -> raw 10)
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
staggerbooleanEnable Moho Stagger step interpolation flag
turbulentAmplitudenumberRaw internal turbulent amplitude (prefer turbulentAmplitudePercent)
turbulentAmplitudePercentnumberTurbulent amplitude on Moho UI 0..100 scale (converted via pct / 100 * 2)
turbulentFrequencynumberRaw internal turbulent frequency (prefer turbulentFrequencyPercent)
turbulentFrequencyPercentnumberTurbulent frequency on Moho UI 0..100 scale (converted via pct / 100 * 10)
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)
windDirectionDegnumberWind direction angle in degrees
windStrengthnumberRaw internal wind strength (prefer windStrengthPercent: 0..100 -> raw * 5)
windStrengthPercentnumberWind strength on Moho UI 0..100 scale (converted via pct / 100 * 500)

physics_configure

Inspect or configure Moho Pro 14 2D Physics on a Group/Bone layer (`groupEnabled`, `gravity`, `useBakedPhysics`, `bake`) and/or per-layer rigid-body `MohoPhysicsOptions` (read-only when no mutating fields are passed; returns full state including `pivotOnOrigin`, `respawnInterval`, and `lifetime`).

ParameterTypeDescription
bakebooleanStep startFrame..endFrame to evaluate physics and lock UseBakedPhysics(true)
densitynumberRigid body mass density
enableMotorbooleanEnable rotational motor on pivoted body
enabledbooleanPer-layer physics participation
endFramenumberLast frame to evaluate when bake=true
forceObjectbooleanTreat layer as a directional force field emitter
forceVectorobjectAnimated force field vector {x, y} (fForceVector)
framenumberTarget frame for animated physics tracks (default: 0)
frictionnumberSurface sliding friction coefficient
gravityobjectGroup gravity vector {x, y}
groupEnabledbooleanEnable/disable 2D physics simulation on Group/Bone layer
initialVelocityobjectInitial launch velocity vector {x, y}
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
lifetimenumberAlias for respawnInterval (MohoPhysicsOptions.fRespawnInterval)
motorSpeednumberAnimated motor angular speed (fMotorSpeed)
motorTorquenumberMaximum motor torque
pivotOnOriginbooleanPin rigid body rotation around layer origin
respawnIntervalnumberMohoPhysicsOptions.fRespawnInterval in frames (0 = no respawn)
restitutionnumberBounce / elasticity restitution (0..1)
sleepingbooleanStart rigid body asleep until collided with
startFramenumberFirst frame to evaluate when bake=true
staticBodybooleanMark layer as immovable static collider (non-moving object)
useBakedPhysicsbooleanToggle UseBakedPhysics on the physics GroupLayer

animation_getKeyframes

Read all keyframes, interpolation, Bezier handles, color tags, and Separate Dimensions from layer, bone, wind/gravity, Vitruvian, switch, vector point/shape, layer order, follow-path, or camera channels.

ParameterTypeDescription
channel *stringTarget Moho animation channel name (supports *_x/*_y/*_z Separate Dimensions shortcuts)
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
curveIndexnumberCurve index on point for point_curvature (default: 0)
dimensionstringSeparate Dimension axis for vector channels (x, y, z)
groupIndexnumberVitruvian group index for vitruvian_active_bone
groupNamestringVitruvian group name for vitruvian_active_bone
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
pointIdnumberZero-based point index for point_pos/point_width/point_curvature
shapeIdnumberZero-based shape index for shape_* / combo_blend channels
shapeNamestringShape name for shape_* / combo_blend channels
splitDimensionsbooleanSplit vector channel dimensions automatically if not already split

animation_setKeyframes

Batch-write multiple keyframes with Smooth/Linear/Ease/Step/Bezier (with handles)/Cycle/Bounce/Elastic/Stagger/Hold/ColorTag interpolation onto any supported Moho 14.4 animation channel (including Separate Dimensions).

ParameterTypeDescription
channel *stringTarget Moho animation channel name (supports *_x/*_y/*_z Separate Dimensions shortcuts)
keyframes *arrayArray of { frame, value, ...interp } keyframes to write onto the channel
additiveCyclebooleanEnable additive cycle accumulation
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
colorTagnumberKeyframe color tag index (InterpSetting.tags)
curveIndexnumberCurve index on point for point_curvature (default: 0)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
dimensionstringSeparate Dimension axis for vector channels (x, y, z)
groupIndexnumberVitruvian group index for vitruvian_active_bone
groupNamestringVitruvian group name for vitruvian_active_bone
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
pointIdnumberZero-based point index for point_pos/point_width/point_curvature
shapeIdnumberZero-based shape index for shape_* / combo_blend channels
shapeNamestringShape name for shape_* / combo_blend channels
splitDimensionsbooleanSplit vector channel dimensions automatically if not already split
staggerbooleanEnable Moho Stagger step interpolation flag
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)

animation_deleteKeyframe

Delete a single keyframe (frame > 0) from any supported Moho 14.4 animation channel.

ParameterTypeDescription
channel *stringTarget Moho animation channel name (supports *_x/*_y/*_z Separate Dimensions shortcuts)
frame *numberKeyframe number to delete (must be > 0)
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
curveIndexnumberCurve index on point for point_curvature (default: 0)
dimensionstringSeparate Dimension axis for vector channels (x, y, z)
groupIndexnumberVitruvian group index for vitruvian_active_bone
groupNamestringVitruvian group name for vitruvian_active_bone
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
pointIdnumberZero-based point index for point_pos/point_width/point_curvature
shapeIdnumberZero-based shape index for shape_* / combo_blend channels
shapeNamestringShape name for shape_* / combo_blend channels
splitDimensionsbooleanSplit vector channel dimensions automatically if not already split

animation_createCycle

Build a seamless multi-channel animation cycle across [startFrame, endFrame]: ensures boundary keys at start/end, copies startFrame to endFrame when needed, and sets Cycle interpolation targeting startFrame + 1 (Frame 2 when starting at Frame 1) to avoid the double-frame stutter.

ParameterTypeDescription
endFrame *numberCycle end frame where Cycle interpolation is applied
additiveCyclebooleanAccumulate cycle offsets across repetitions (additive cycle)
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
channelstringTarget Moho animation channel name (supports *_x/*_y/*_z Separate Dimensions shortcuts)
channelsarrayOptional list of channel names or channel selector objects to cycle together
colorTagnumberKeyframe color tag index on the cycle keyframe
copyStartToEndbooleanCopy startFrame value to endFrame if endFrame has no key (default: true)
curveIndexnumberCurve index on point for point_curvature (default: 0)
cycleModestringDefault: 'relative'
cycleTargetFramenumberLoop target frame (default: startFrame + 1)
dimensionstringSeparate Dimension axis for vector channels (x, y, z)
ensureStartKeybooleanKey startFrame if no key exists yet (default: true)
forceCopyStartToEndbooleanAlways overwrite endFrame value with startFrame value (default: false)
groupIndexnumberVitruvian group index for vitruvian_active_bone
groupNamestringVitruvian group name for vitruvian_active_bone
interpolationAtStartstringOptional interpolation mode for startFrame (e.g. 'linear')
intervalnumberStep interval in frames for the cycle keyframe (1=ones, 2=twos)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
pointIdnumberZero-based point index for point_pos/point_width/point_curvature
shapeIdnumberZero-based shape index for shape_* / combo_blend channels
shapeNamestringShape name for shape_* / combo_blend channels
splitDimensionsbooleanSplit vector channel dimensions automatically if not already split
startFramenumberCycle start frame (default: 1)
targetsarrayOptional explicit list of { layerName/Id, channel, boneName/Id, dimension, ... } targets

animation_retime

Scoped keyframe retiming across explicit targets/channels (never accidentally shifts untouched scene layers): push_frames, scale_range (Alt+Drag), relative_offset, and clear_range (always protects frame 0).

ParameterTypeDescription
operation *stringRetiming operation to apply across selected channels
anchorFramenumberAnchor frame for scale_range (default: startFrame)
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
channelstringTarget Moho animation channel name (supports *_x/*_y/*_z Separate Dimensions shortcuts)
channelsarrayOptional list of channel names on the selected layer/bone to retime together
curveIndexnumberCurve index on point for point_curvature (default: 0)
deltanumberFrame shift delta for push_frames
dimensionstringSeparate Dimension axis for vector channels (x, y, z)
endFramenumberRange end frame
factornumberScale multiplier for scale_range (e.g. 1.5 slows down, 0.5 speeds up)
fromFramenumberStart frame for push_frames (>= 1)
groupIndexnumberVitruvian group index for vitruvian_active_bone
groupNamestringVitruvian group name for vitruvian_active_bone
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
newEndFramenumberAlternative destination end frame for scale_range
newStartFramenumberAlternative destination start frame for scale_range
pointIdnumberZero-based point index for point_pos/point_width/point_curvature
shapeIdnumberZero-based shape index for shape_* / combo_blend channels
shapeNamestringShape name for shape_* / combo_blend channels
splitDimensionsbooleanSplit vector channel dimensions automatically if not already split
startFramenumberRange start frame (>= 1)
targetsarrayExplicit list of channel targets to retime
toFramenumberOptional inclusive end frame for push_frames
valueOffsetNumeric or vector/color delta added to every key in range for relative_offset

animation_tween

Generate a weighted breakdown (0..1), anticipation (weight < 0), or overshoot (weight > 1) keyframe at `frame` interpolated between surrounding keyframes across one or more channels.

ParameterTypeDescription
frame *numberTarget breakdown frame (>= 1)
additiveCyclebooleanEnable additive cycle accumulation
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
channelstringTarget Moho animation channel name (supports *_x/*_y/*_z Separate Dimensions shortcuts)
channelsarrayOptional list of channel names on the selected layer/bone to tween together
colorTagnumberKeyframe color tag index (InterpSetting.tags)
curveIndexnumberCurve index on point for point_curvature (default: 0)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
dimensionstringSeparate Dimension axis for vector channels (x, y, z)
groupIndexnumberVitruvian group index for vitruvian_active_bone
groupNamestringVitruvian group name for vitruvian_active_bone
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
nextFramenumberOptional explicit next keyframe override
pointIdnumberZero-based point index for point_pos/point_width/point_curvature
prevFramenumberOptional explicit previous keyframe override
shapeIdnumberZero-based shape index for shape_* / combo_blend channels
shapeNamestringShape name for shape_* / combo_blend channels
splitDimensionsbooleanSplit vector channel dimensions automatically if not already split
staggerbooleanEnable Moho Stagger step interpolation flag
targetsarrayOptional explicit list of channel targets to tween together
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)
weightnumberInterpolation weight: 0.5 midpoint, < 0 anticipation, > 1 overshoot (default: 0.5)

timeline_markers

List, add, update, delete, or clear document-wide (`MohoDoc.fTimelineMarkers`) or layer-specific (`MohoLayer.fTimelineMarkers`) timeline markers with color tags.

ParameterTypeDescription
operation *stringTimeline marker operation
colorTagnumberMarker color tag index (InterpSetting.tags)
framenumberTarget frame for add, update, or delete
labelstringMarker text label
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
scopestringMarker scope (defaults to 'layer' if layer selector passed, else 'document')
textstringAlias for label

action_list

List Regular and Smart Bone Actions on a layer (including isSmartBone, angleSweepDeg, and is360SmartBone flags) and report the active layer/document action.

ParameterTypeDescription
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

action_activate

Enter or create an Action / Smart Bone Action on a layer (synced with SetCurrentDocAction; pass '' to return to Mainline).

ParameterTypeDescription
actionName *stringAction/Bone name, or '' to return to Mainline
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID

action_createSmartBone

Create a standard or full +/-360-degree Smart Bone Action (exact unwrapped zeroAngle +/- 2*pi, 96-frame default duration, linear bone keys, optional Frame-0-to-end mirroring across child layers).

ParameterTypeDescription
actionNamestringOptional explicit action name (defaults to boneName or 'boneName 2' when direction='second')
addMidpointKeybooleanIn 360 mode, also place a midpoint +/-180 deg linear key
boneIdnumberZero-based bone index inside the BoneLayer
boneNamestringExact bone name
clockwisebooleanIn 360 mode, sweep -360 deg instead of +360 deg when deltaAngleDeg omitted
deltaAngleDegnumberRelative angle delta in degrees from Frame 0 angle (default: +90 for standard, +/-360 for 360 mode)
directionstring'second' creates the '<BoneName> 2' reverse action
durationnumberAction length in frames (default: 96)
endFramenumberEnd frame (defaults to duration)
interpolationstringDriving bone interpolation (default: 'linear')
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
leaveActivebooleanKeep the newly created Smart Bone Action active for immediate pose editing (default: false -> returns to Mainline)
mirrorFrame0ToEndbooleanCopy Frame 0 transforms and vector point positions to endFrame (and startFrame) for seamless 360 turnarounds
mirrorFrame0ToStartbooleanAlso mirror Frame 0 to startFrame when mirrorFrame0ToEnd=true (default: true)
mirrorLayersarrayOptional specific layer names/IDs to mirror (defaults to all child layers under the BoneLayer)
modestringDefault: 'standard'; '360' enforces exact unwrapped +/-360 deg sweep
startFramenumberStart frame (default: 1)
targetAngleDegnumberAbsolute target angle in degrees (standard mode only)

action_manage

Insert (copy or reference), rename, delete, or blend Actions on a layer.

ParameterTypeDescription
operation *stringAction management operation
actionFramesarrayFor blend: optional per-action source frame
actionNamestringTarget action name (for insert, rename, delete)
actionNamesarrayFor blend: action names to blend
blendModenumberFor blend: Moho 6-arg BlendActions mode code
byReferencebooleanFor insert: true inserts reference, false copies keyframes (default: false)
framenumberTarget frame for insert or blend (default: current frame)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
newNamestringNew action name (required for rename)
relativebooleanFor blend: add blended pose relative to current pose
weightsarrayFor blend: 0..1 blend weight per action

camera_get

Read camera track, zoom, rollDeg, and panTiltDeg at a given frame.

ParameterTypeDescription
framenumberFrame at which to sample camera state (default: current frame)

camera_setKeyframe

Set camera track, zoom, rollDeg, and/or panTiltDeg keyframes with optional interpolation.

ParameterTypeDescription
additiveCyclebooleanEnable additive cycle accumulation
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
colorTagnumberKeyframe color tag index (InterpSetting.tags)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
framenumberTarget frame for camera keyframes (default: current frame)
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
panTiltDegobjectCamera pan/tilt angles in degrees {x, y}
rollDegnumberCamera roll angle in degrees
staggerbooleanEnable Moho Stagger step interpolation flag
trackobjectCamera position {x, y, z}
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)
zoomnumberCamera zoom angle in degrees (default: 60)

mesh_getData

Inspect points (with width, opacity, colorDrift, curvature, Point Colors, worldPos, handles), curves (with segment visibility and stroke exposure), shapes (Soft Edge, Gradients, Styles, Brushes, Liquid Shape clusters), and warp/curver flags.

ParameterTypeDescription
framenumberFrame at which to read point/shape state (default: current frame)
includeHandlesbooleanInclude incoming/outgoing Bezier handle vectors on vertices
includePointColorsbooleanInclude Moho Point Color entries on vertices
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
maxPointsnumberMaximum number of mesh points to serialize (default: 500)

mesh_createShape

Create a vector shape from new `points`, an `oval`/`rect` `primitive`, or existing `pointIds` (with optional `holes`, Soft Edge, Gradients, Saved Styles, and Brushes).

mesh_editShape

Edit, keyframe, restyle, copy style, reorder stacking, or delete an existing vector shape on a VectorLayer (fill/stroke color & alpha, Soft Edge, Gradients + handles, Saved Style 1/2, Brushes).

mesh_editPoints

Move/animate mesh points, adjust per-point width/opacity/colorDrift, curvature, Point Colors, asymmetric Bezier handles, or point bone bindings.

ParameterTypeDescription
edits *arrayPer-point edit entries
additiveCyclebooleanEnable additive cycle accumulation
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
colorTagnumberKeyframe color tag index (InterpSetting.tags)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
framenumberTarget frame for keyframed point edits (default: current frame)
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
staggerbooleanEnable Moho Stagger step interpolation flag
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)

mesh_editTopology

Edit vector topology and curve visibility on a VectorLayer. Choose one `operation`: `split_segments` (subdivide curves), `insert_point` (add vertex on segment), `weld_points` (merge vertices), `connect_and_create` (bridge points/shape), `hide_edge` (toggle segment stroke visibility), `delete_points`, `mirror_points` (flip/duplicate across X/Y axis), `merge_shapes` (boolean weld shapes), `triangulate` (convert to Smart Warp mesh), or `stroke_exposure` (animate draw-on/draw-off startPercent..endPercent).

mesh_createSmartWarp

Create a live Moho 14 Smart Warp (`mode='warp'`), Quad Smart Warp (`mode='quad'`), or Curver (`mode='curver'`, with multi-curve `appendToLayerId`, `curverWidth`, guarded `compressible`, and auto bone-binding inheritance).

ParameterTypeDescription
appendToLayerIdnumberAppend another curve onto an existing Curver layer ID (Dual/Multi-Curver)
appendToLayerNamestringAppend another curve onto an existing Curver layer by name
autoBindToTargetBonebooleanInherit target layer rigid/flexi bone binding automatically (default: true)
bindToTargetbooleanAutomatically assign as target layer's WarpLayer (default: true)
colsnumberGrid columns or Curver points when auto-generating geometry
compressiblebooleanEnable Compressible Curver if exposed by active Moho version
continuousTriangulationbooleanEnable Moho 14 live Continuous Triangulation (default: true for warp, false for quad)
curverWidthnumberInitial pt.fWidth envelope radius on Curver points
cxnumberExplicit mesh center X (defaults to target layer bounds center)
cynumberExplicit mesh center Y (defaults to target layer bounds center)
heightnumberExplicit mesh height (defaults to target layer bounds height + margin)
marginnumberOuter padding around target bounds (default: 0.04)
modestringDeformer mode (default: 'warp')
namestringName for the newly created warp/curver VectorLayer
pointsarrayOptional custom {x, y, width?} points in local layer coordinates
rowsnumberGrid rows for warp/quad
targetLayerIdnumberTarget Vector/Image/Group layer ID to deform
targetLayerNamestringTarget Vector/Image/Group layer name to deform
widthnumberExplicit mesh width (defaults to target layer bounds width + margin)

mesh_setCurveProfile

Attach, configure repeat/animated offset, or detach a Curve Profile on a VectorLayer curve (lm_curve_profile.lua).

ParameterTypeDescription
additiveCyclebooleanEnable additive cycle accumulation
bezierInAnglenumberBezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle)
bezierInPercentnumberBezier incoming handle percentage (InterpSetting:SetBezierInPercentage)
bezierOutAnglenumberBezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle)
bezierOutPercentnumberBezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage)
clearbooleanRemove Curve Profile from target curve
colorTagnumberKeyframe color tag index (InterpSetting.tags)
curveIdnumberZero-based target curve index (default: 0)
cycleBacknumberRelative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2)
cycleModestringCycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame)
cycleTargetFramenumberTarget loop frame when using Cycle interpolation
detachbooleanAlias for clear: remove Curve Profile from target curve
framenumberFrame for animated profileOffset keyframe (default: current frame)
holdnumberFrames to hold prior value before interpolating
interpolationstringKeyframe interpolation mode (e.g. smooth, linear, ease, step, bezier, cycle)
intervalnumberStep interval in frames (1 = ones, 2 = twos, 3 = threes)
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
profileCurveIdnumberZero-based curve index inside the profile layer (default: 0)
profileLayerIdnumberVectorLayer ID containing the profile curve
profileLayerNamestringVectorLayer name containing the profile curve
profileOffsetnumberAnimated profile offset along curve
profileRepeatnumberInteger repeat count >= 1
staggerbooleanEnable Moho Stagger step interpolation flag
val1numberInterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param)
val2numberInterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative)

mesh_liquidShapes

Author Moho 14 Liquid Shapes boolean clusters on a VectorLayer: `set_combo` sets fComboMode/fComboBlend on a shape, `combine` merges two shapes into a Liquid cluster, and `bake` converts a Liquid cluster into one editable vector shape.

ParameterTypeDescription
operation *stringLiquid Shapes operation to execute
baseShapeIdnumberFor combine: base shape index
baseShapeNamestringFor combine: base shape name
blendnumberLiquid Shapes metaball blend radius (0.0 .. 1.0)
comboModestringBoolean combination mode ('clip' aliases 'intersect')
flagbooleanOptional Moho CombineShapes/BakeCombinedShapes internal flag
framenumberFrame for animated blend radius (default: 0)
keepOriginalsbooleanFor combine/bake: keep source shapes intact
layerIdnumberNumeric depth-first layer ID (from layer_list)
layerNamestringExact layer name
layerUuidstringLayer UUID
otherShapeIdnumberFor combine: second shape index merged with base
otherShapeNamestringFor combine: second shape name
placeAboveShapeIdnumberOptional shape stacking placement above target ID
placeBehindShapeIdnumberOptional shape stacking placement behind target ID
shapeIdnumberTarget shape index (for set_combo or bake)
shapeNamestringTarget shape name (alternative to shapeId)

style_manage

Manage document-wide Saved Styles and Moho 14 Brushes: `list` (inspect styles), `create` (new Saved Style), `update` (modify style properties/name), `delete` (remove one style), `delete_unused` (purge unreferenced styles), `list_brushes` (enumerate installed brush presets), and `new_from_shape` (extract a Saved Style from an existing shape and optionally bind matching shapes).

batch_execute

Execute up to 100 Moho Studio MCP operations atomically inside one IPC round-trip, one Undo step, and one coalesced UI refresh.

ParameterTypeDescription
operations *arrayOrdered list of { method, params } RPC calls to execute
stopOnErrorbooleanAbort remaining ops on first failure (default: true)