add_motion_path
Makes an object travel along a Path shape: samples the curve (bezier handles, scale, rotation) at constant speed and bakes transform.x/y keyframes (plus rotation with orient), like the editor's Trajectory Studio. The object and the path must share a parent.
add_motion_path is an official Exode MCP tool that allows AI coding assistants like Claude Code, Cursor, and Windsurf to makes an object travel along a path shape: samples the curve (bezier handles, scale, rotation) at constant speed and bakes transform.x/y keyframes (plus rotation with orient), like the editor's trajectory studio. the object and the path must share a parent.. It directly inspects and modifies local .exode JSON files with precision without manual UI tweaking.
Example Prompt for Claude Code & Cursor
Give this instruction to your AI coding agent to execute this tool on your active .exode workspace:
"Use add_motion_path to configure the motion properties in my active .exode workspace"Tool Parameters & Input Schema
| Parameter | Type | Required | Description |
|---|---|---|---|
| animationId | string | Yes | Animation to write into (created and wired to play on load if missing) |
| duration | number | Optional | Seconds (default 2) |
| easing | string | Optional | Progress along the path (default easeInOutSine) |
| objectId | string | Yes | The objectId parameter for add_motion_path. |
| orient | boolean | Optional | Rotate the object to follow the path direction |
| path | string | Yes | The path parameter for add_motion_path. |
| pathObjectId | string | Yes | A Path object (geometry.points) |
| reverse | boolean | Optional | The reverse parameter for add_motion_path. |
| rotationOffset | number | Optional | Degrees added when orienting |
| samples | number | Optional | Keyframes to bake (default 30 per second) |
| startTime | number | Optional | Seconds (default 0) |
More Animation & Physics Tools
Build & Review Motion Visually
Let Claude or Cursor run add_motion_path, then fine-tune timing, spring physics, and export ready-to-ship code in ExodeUI.