Model API

While the Vectary platform is designed to create a no-code experience, certain advanced features -especially those involving integration with external sites - require code-level customization. The Model API enables this level of control, allowing deeper interaction with embedded 3D models.

How it works

Vectary embeds are implemented using iframes which means they operate in an isolated environment. To interact with them, a messaging layer must be used.

For workspaces with a Business and Grow plan, Vectary provides a script that can be added to a website. This script includes the necessary messaging layer, enabling seamless communication with the embedded model.

Once configured, an instance of the Vectary Model API can be created for each model. These instances provide access to a set of methods for interacting with the 3D model.

Refer to the Quick Start section to begin setup.

Capabilities

The Model API allows interaction with Vectary embeds on a web page using a limited but powerful set of methods. Unlike general-purpose libraries like Three.js or Babylon.js, most model behaviors and configurations can be handled directly in Vectary Studio, minimizing the need for code.

Available features include:

  • Initializing communication with embedded models

  • Sending and receiving view data

  • Sending and listening to events triggered within the 3D scene

  • Connecting with Floating UI elements

  • Integrating with e-commerce logic

API sections

Quick Start

API Reference

Type Definitions

Events & Listeners

Floating UI

Ecommerce

Last updated