assign_motion_path
Make a layer follow a path layer to create editable motion; set animateMs for 0→1 progress animation and orientToPath to align rotation with the path tangent.
Instructions
Make a layer travel along a path layer (followPath). Set animateMs to auto-animate progress 0→1 over that duration. orientToPath rotates the layer to face the path tangent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"layerId": "<layerId>",
"pathLayerId": "<pathLayerId>"
},
"name": "assign_motion_path"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layerId | Yes | Layer that should follow the path | |
| animateMs | No | If set, animate progress 0→1 over this many ms | |
| requestId | No | ||
| sessionId | No | ||
| timelineId | No | Timeline for the progress animation (default "main") | |
| pathLayerId | Yes | Path layer to follow (type=path) | |
| orientToPath | No | Rotate to face path tangent | |
| rotationOffset | No | Extra rotation on top of tangent (deg) | |
| expectedRevision | No | ||
| perpendicularOffset | No | Offset perpendicular to path (px) |