Motion
Get Motion

ReferenceScript nodesHTTP

On Page Message

When a web project's page says something (its motion.send): its layer, and what it said.

HTTPAn event: starts a chainpageHeard

Inputs

None. It starts a chain of its own.

Outputs

PinType
thenwhat happens next
Web Projectlayerlayer
Messagedataany

The code it becomes

The graph below written as a script would write it.

let s2_layer = "";let s2_data = undefined;// On Page Messagescene.on("page", function (layer, data) { s2_layer = String(layer); s2_data = data;    scene.log(s2_layer);});

In a graph

The node with what starts it and Print to show what it gives, as Studio draws them.