ReferenceScripting APIMotionScenesendToPage
MotionScene.sendToPage
methodSends something to a web project's page (its motion.on("message")).
| Name | sendToPage |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.sendToPage(…) |
| As a node | Send to Page (logic graph) |
| Since | 0.3 |
Syntax
sendToPage( layer: string, data: unknown): voidParameters
| Name | Type | Description |
|---|---|---|
layer | string | The web layer's name or id |
data | unknown | Anything JSON can hold, 64 kB at most |
Returns
Nothing.
Remarks
A layer that isn't there does nothing, and the console says so once.
See also
In examples: Kelp Forest
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.