extension-rive

Namespace: rive Language: Lua Type: Extension

Rive animation helpers exposed to Lua scripts

API

rive.pointer_move

Type: FUNCTION Lua wrapper for pointer movement.

Parameters

rive.pointer_up

Type: FUNCTION Lua wrapper for pointer up events.

Parameters

rive.pointer_down

Type: FUNCTION Lua wrapper for pointer down events.

Parameters

rive.pointer_exit

Type: FUNCTION Lua wrapper for pointer exit events.

Parameters

rive.get_projection_matrix

Type: FUNCTION Returns the projection matrix in render coordinates.

rive.set_file_listener

Type: FUNCTION Sets or clears the global file listener callback.

Parameters

rive.get_file

Type: FUNCTION Returns the Rive file handle tied to the component.

Parameters

rive.set_artboard

Type: FUNCTION Switches the active artboard for the component.

Parameters

rive.get_artboard

Type: FUNCTION Queries the current artboard handle for the component.

Parameters

rive.set_state_machine

Type: FUNCTION Selects a state machine by name on the component.

Parameters

rive.get_state_machine

Type: FUNCTION Returns the active state machine handle for the component.

Parameters

rive.set_view_model_instance

Type: FUNCTION Selects a default view model instance by name.

Parameters

rive.get_view_model_instance

Type: FUNCTION Returns the handle of the currently bound view model instance.

Parameters