API Reference

Complete list of Model API methods organized by category.

New methods and features are added to the API over time. While we aim to keep this reference up to date, some methods may not yet be documented or may lack complete details.

We welcome your questions and feedback. If something is unclear, missing, incorrect, or not working as described, please contact usarrow-up-right.

Methods

Initialization

#
Method
Description
Snippet

1

Initialize API connection with the embedded model

2

Check if the API is ready

3

Get project information


Events

#
Method
Description
Snippet

Configuration

#
Method
Description
Snippet

Objects

#
Method
Description
Snippet

9

Get objects by name or all objects

10

Remove objects from the scene

11

Get objects currently under cursor

13

Move objects in hierarchy


Transformations


Materials

#
Method
Description
Snippet

21

Get all materials in the scene

22

Get materials assigned to an object

25

Add new or edit existing material

26

Remove material from an object


Textures

#
Method
Description
Snippet

Primitives

#
Method
Description
Snippet

3D Text

#
Method
Description
Snippet

Camera

#
Method
Description
Snippet

35

Get camera position and target

36

Set camera position and target

37

Fit object in camera view


Animations


Raycast

#
Method
Description
Snippet

Environment

#
Method
Description
Snippet

Import / Export

#
Method
Description
Snippet

46

Import 3D file into scene

47

Import another Vectary project

49

Take screenshot of the scene


Common Types

Types that appear in multiple methods are documented here. Types specific to a single method are described on that method's page.

Vector3

3D coordinates or RGB color values.

Euler

Rotation angles in degrees.

Object

Scene object returned by getObjects() and similar methods.

ConfigurationState

State of variants and materials, returned by getConfigurationState().

CameraViewState

Camera position and orientation, used by getViewState() and setViewState().

Material

Material properties for PBR rendering.

Textures

TextureConfig

chevron-rightTextureFilterSettingshashtag
chevron-rightTextureMapSettingshashtag
chevron-rightWrapModehashtag

TextureData

Last updated