On Page Message
When a web project's page says something (its motion.send): its layer, and what it said.
◆On Page Message
Web Project
Message
Inputs
None. It starts a chain of its own.
Outputs
| Pin | Type |
|---|---|
then | what happens next |
Web Projectlayer | layer |
Messagedata | any |
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
◆On Page Message
Web Project
Message
ƒPrint
In Text
The node with what starts it and Print to show what it gives, as Studio draws them.
Related
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.