Motion
Get Motion

ReferenceScripting APIMotionScenesendToPage

MotionScene.sendToPage

method

Sends something to a web project's page (its motion.on("message")).

NamesendToPage
Kindmethod of MotionScene
Called asscene.sendToPage(…)
As a nodeSend to Page (logic graph)
Since0.3

Syntax

sendToPage(    layer: string,    data: unknown): void

Parameters

NameTypeDescription
layerstringThe web layer's name or id
dataunknownAnything 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