For the complete documentation index, see llms.txt. This page is also available as Markdown.

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 us.

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

4

Send event to the scene

5

Listen for events from the scene


Configuration

#
Method
Description
Snippet

7

Get current variants and materials state

8

Set variants and materials state


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

14

Show or hide objects

15

Select one or more objects by name or ID

16

Remove objects from selection, or clear entire selection

17

Get currently selected objects


Gizmo

#
Method
Description
Snippet

18

Configure transform gizmo visibility, orientation, and snapping


Transformations

#
Method
Description
Snippet

19

Get object position

20

Set object position

21

Get object rotation

22

Set object rotation

23

Get object scale

24

Set object scale


Materials

#
Method
Description
Snippet

25

Get all materials in the scene

26

Get materials assigned to an object

27

Get active material of an object

28

Set active material of an object

29

Add new or edit existing material

30

Remove material from an object


Textures

#
Method
Description
Snippet

31

Get texture raw data

32

Set texture raw data

33

Add new texture from file

34

Overlay texture with positioning


Primitives

#
Method
Description
Snippet

35

Get primitive settings

36

Set primitive settings

37

Create a box primitive and add it to the scene

38

Create a sphere primitive and add it to the scene

39

Create a cone primitive and add it to the scene

40

Create a cylinder primitive and add it to the scene

41

Create a torus primitive and add it to the scene

42

Create a tube primitive and add it to the scene

43

Create a polyhedron primitive and add it to the scene

44

Create a square plane primitive and add it to the scene


Boolean Operations

#
Method
Description
Snippet

45

Enable or disable boolean calculation on a boolean operator

46

Check if boolean calculation is active

47

Set operation type for a child of a boolean operator

48

Get operation type for a child of a boolean operator


3D Text

#
Method
Description
Snippet

49

Get 3D text settings

50

Set 3D text settings


Camera

#
Method
Description
Snippet

51

Get camera position and target

52

Set camera position and target

53

Fit object in camera view


Animations

#
Method
Description
Snippet

54

Get list of animations

57

Set animation progress (0-100)


Raycast

#
Method
Description
Snippet

58

Raycast from current mouse position

59

Raycast specific object

60

Get ray from screen coordinates


Environment

#
Method
Description
Snippet

61

Rotate HDRI environment (degrees)


Import / Export

#
Method
Description
Snippet

62

Import 3D file into scene

63

Import another Vectary project

64

Export scene to file

65

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.

CreatePrimitiveOptions

Shared options object accepted by all create* primitive 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

TextureFilterSettings
TextureMapSettings
WrapMode

TextureData

Last updated