Motion
Get Motion

ReferenceScript nodesMath › Date and Time

Is Night

Whether it's dark outside (roughly), and how light, 0 to 1.

Math › Date and TimePure: no flow pinsisNight

Inputs

None.

Outputs

PinType
Resultoutbool
Daylightdaylightnumber

The code it becomes

The graph below written as a script would write it.

// On Scene Startscene.log(((scene.clock.daylight <= 0)));

In a graph

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