layer_setProperties
Modify a layer's transform, parallax Z, timing offset, Layer FX, opacity, blur, blending, and metadata to adjust its appearance and behavior in a live Moho project.
Instructions
Modify layer transform, parallax Z (with preserveApparentSize), timingOffset, shownOnTimeline, immuneToDof, Layer FX (colorize/outline/shadow/shading), vectorNoise, opacity, blur, blendingMode, and metadata.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "layer_setProperties"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blur | No | Raw document-unit blur radius (prefer blurPx for pixel units) | |
| hold | No | Frames to hold prior value before interpolating | |
| name | No | ||
| val1 | No | InterpSetting.val1 (relative cycle delta or noisy/bounce/elastic param) | |
| val2 | No | InterpSetting.val2 (absolute cycle target frame when >= 0, -1 for relative) | |
| flipH | No | ||
| flipV | No | ||
| frame | No | ||
| scale | No | ||
| blurPx | No | Layer blur radius in pixels (converted via moho:PixelToDoc) | |
| locked | No | ||
| origin | No | ||
| shadow | No | ||
| layerId | No | Numeric depth-first layer ID (from layer_list) | |
| opacity | No | ||
| outline | No | ||
| shading | No | ||
| stagger | No | ||
| visible | No | ||
| colorTag | No | Keyframe color tag index (InterpSetting.tags) | |
| colorize | No | ||
| editOnly | No | ||
| interval | No | Step interval in frames (1 = ones, 2 = twos, 3 = threes) | |
| userTags | No | ||
| cycleBack | No | Relative frame delta for Cycle interpolation (default: frame - 2, loops back to Frame 2) | |
| cycleMode | No | Cycle targeting mode: 'relative' (val1 delta, val2=-1) or 'absolute' (val2 frame) | |
| depthSort | No | Trigger FullDepthSort on Group or DepthSort on document | |
| layerName | No | Exact layer name | |
| layerUuid | No | Layer UUID | |
| rotationX | No | Degrees | |
| rotationY | No | Degrees | |
| rotationZ | No | Degrees | |
| labelColor | No | ||
| renderOnly | No | ||
| immuneToDof | No | ||
| translation | No | ||
| vectorNoise | No | ||
| blendingMode | No | Blending mode name (e.g. 'multiply', 'screen', 'add') or numeric code | |
| timingOffset | No | Sequencer frame offset | |
| userComments | No | ||
| additiveCycle | No | Enable additive cycle accumulation | |
| bezierInAngle | No | Bezier incoming tangent angle (radians, InterpSetting:SetBezierInAngle) | |
| interpolation | No | ||
| bezierOutAngle | No | Bezier outgoing tangent angle (radians, InterpSetting:SetBezierOutAngle) | |
| bezierInPercent | No | Bezier incoming handle percentage (InterpSetting:SetBezierInPercentage) | |
| shownOnTimeline | No | ||
| bezierOutPercent | No | Bezier outgoing handle percentage (InterpSetting:SetBezierOutPercentage) | |
| cycleTargetFrame | No | Target loop frame when using Cycle interpolation | |
| preserveApparentSize | No | Auto-adjust X/Y and scale when translation.z changes (Moho Alt+Shift parallax) |