spectacles-mocopi-integration

Installation
SKILL.md

Mocopi Integration

Sony mocopi is a mobile motion capture system that can stream skeletal data over a local network. Using the MocopiReceiver package, you can drive AR avatars and interactive characters in Spectacles lenses using real-time full-body motion capture.

Official site: Sony mocopi

Connection Workflow

  1. Host Server: Run the mocopi desktop/mobile app and enable "Send" mode (UDP/WebSocket).
  2. WebSocket Client: Use MocopiWebSocketClient in Lens Studio to connect to the IP/Port of the host.
  3. Skeleton Mapping: Listen for the SkeletonDefinition, which contains the hierarchical bone structure.
  4. Frame Processing: Update your 3D avatar bones every time a FrameData packet arrives.

Basic Implementation

The MocopiMainController manages the communication between the network client and the avatar.

import { MocopiWebSocketClient } from "./MocopiWebSocketClient";
import { MocopiAvatarController } from "./MocopiAvatarController";

@component
export class MyMocopiBridge extends BaseScriptComponent {
Related skills

More from rolandsmeenk/lensstudioagents

Installs
2
GitHub Stars
5
First Seen
Apr 24, 2026