Skip to main content

Script Overview

Lens Studio provides a scripting engine for creating rich interactive experiences. With scripts, your Lenses can respond to touch input, play animation and audio, modify Scene Objects, and more.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

Lens Studio provides a scripting engine for creating rich interactive experiences. With scripts, your Lenses can respond to touch input, play animation and audio, modify Scene Objects, and more.

Lens Studio provides a scripting engine for creating rich interactive experiences. With scripts, your Lenses can respond to hand input, play animation and audio, modify Scene Objects, and more.

You can use JavaScript or TypeScript to code in Lens Studio. More specifically, you can use the ES2019 specification of JavaScript, and CommonJS like require.

Use the Table of Contents on the right to jump to different sections quickly.

Get Started With Scripts

Lens Studio offers Lens Developers a scripting engine that utilizes JavaScript and TypeScript to create rich and interactive Lenses. Listed below are some guides to help you get started with Scripting in Lens Studio.