Is On Mains Power
Whether the computer is on mains power (charging, or without a battery).
ƒIs On Mains Power
Out
Inputs
None.
Outputs
| Pin | Type |
|---|---|
Outout | bool |
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
◆On Scene Start
ƒIs On Mains Power
Out
ƒ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.