January 21Jan 21 Hi all... Is there a way with a command to detect if day or night view is on in simulation time fixed mode? Thanks Regards
January 21Jan 21 Hello @raf.sonneville there's a condition time exceeded which you can use. You'll need to combine two conditions and invert the second. time exceeded = 6:00 and not time exceeded = 18:00 The Lua equivalent is if (layout.time > toTime("6:00")) and (layout.time < toTime("18:00")) then I hope that helps? Goetz Edited January 21Jan 21 by Goetz Lua code corrected
January 21Jan 21 Hello @raf.sonneville Just a method I use to detect the change of day/night. Take a light giving object and put it in automatic mode for day/night. ( you may hide this reference object ) If there is a change in day / night the integrated switch will toggle. This EV reacts on it. Das ist nur eine Methode, mit der ich den Wechsel von Tag und Nacht erkenne. Nehmen Sie ein lichtgebendes Objekt und stellen Sie es in den automatischen Modus für Tag/Nacht. ( Sie können dieses Referenzobjekt ausblenden ) Wenn es eine Änderung in Tag / Nacht der integrierte Schalter umschalten. Dieser EV reagiert darauf. The advantage is that if you use other times , the reaction stays correct. Der Vorteil ist, dass die Reaktion auch dann korrekt bleibt, wenn Sie andere Zeiten verwenden. Regards, Herman Edited January 22Jan 22 by Herman translation
Create an account or sign in to comment