switch_setActive
Activate, inspect, or keyframe child layers on a Moho SwitchLayer for lip-sync, hand or prop swaps, frame-by-frame animation, and vector sub-layer interpolation.
Instructions
Inspect or keyframe active child layers on a SwitchLayer (lip-sync, hand/prop swaps, Frame-by-Frame mode, vector sub-layer interpolation).
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": "switch_setActive"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| frame | No | ||
| layerId | No | Numeric depth-first layer ID (from layer_list) | |
| childName | No | Child layer name to activate at `frame` | |
| keyframes | No | Optional batch of { frame, childName } switch keyframes | |
| layerName | No | Exact layer name | |
| layerUuid | No | Layer UUID | |
| interpMode | No | Enable smooth vector interpolation between switch children | |
| frameByFrame | No | Toggle Frame-by-Frame layer flag |