Getting started
Importing
Design process
3D Configurator
Variables & Expressions (Beta)
Scene and project settings
Sharing, exporting, embedding
Other
Figma Plugin - Vectary 3D Studio Lite
Model API
You can send data to the model, and also listen to events dispatched from the model.
enum ApiEvents
INTERACTION_CUSTOM_EVENT = "{custom_event_name}",
MOUSE_MOVE = "mouse_move",
MOUSE_DRAG = 'mouse_drag',
MOUSE_DOWN = "mouse_down",
MOUSE_UP = 'mouse_up',
MOUSE_CLICK = "mouse_click",
MOUSE_WHEEL = 'mouse_wheel',
KEY_DOWN = 'key_down',
HOVERED_OBJECT = 'hovered_object',
CONFIGURATOR_STATE_CHANGE = "configurator_state_change",
SELECTION_STATE_CHANGE = "configurator_state_change",
}
{custom_event_name}
Custom events need to be setup directly in studio.
return string | number | boolean | void
configurator_state_change
return [ConfigurationState](<https://magnificent-emoji-b41.notion.site/Type-Definitions-8c684e7dd18d4f1a9af963d113169fd5>)[]
https://codesandbox.io/s/add-removeeventlistener-ebeq4d?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&theme=dark&codemirror=1
https://codesandbox.io/s/dispatchevent-f323xt?autoresize=1&expanddevtools=1&fontsize=14&hidenavigation=1&theme=dark&codemirror=1