Motion
Get Motion

ReferenceScripting APIMotionStore

MotionStore

interface

What a script keeps between runs (256 KB as JSON, 64 keys).

NameMotionStore
Kindinterface
Script reaches it asMotionScene.store · MotionScene.storeFor()
Since0.3

Syntax

interface MotionStore { … }

Properties

NameTypeDescription
scopepropertyreadonly "scene" | "screen"Whose it is: the scene's, or one screen's (scene.storeFor).

Methods

SignatureDescription
get<T>(key: string, fallback?: T): TmethodA value kept.
set(key: string, value: unknown): voidmethodKeeps a value (anything JSON can hold).
remove(key: string): voidmethodForgets a value.
keys(): string[]methodEvery key kept.
clear(): voidmethodForgets everything kept.