ReferenceScripting APIMotionScenesensorAge
MotionScene.sensorAge
methodHow long since one of the scene's sensors' last reading.
| Name | sensorAge |
|---|---|
| Kind | method of MotionScene |
| Called as | scene.sensorAge(…) |
| As a node | Sensor Age (logic graph) |
| Since | 0.4 |
Syntax
sensorAge(name: string): number | nullParameters
| Name | Type | Description |
|---|---|---|
name | string | The name it's shared as, or its sensor's id |
Returns
number | null: seconds, or null before a reading.
Notes from the community
Written by creators and checked by the docs' editors. Not part of Motion's official reference.