Motion
Get Motion

ReferenceScript nodesScene

Is On Mains Power

Whether the computer is on mains power (charging, or without a battery).

ScenePure: no flow pinsonMains

Inputs

None.

Outputs

PinType
Outoutbool

The code it becomes

The graph below written as a script would write it.

// On Scene Startscene.log(((!scene.system || scene.system.battery === null || scene.system.battery === undefined || !!scene.system.charging)));

In a graph

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