Jump to content
View in the app

A better way to browse. Learn more.

3D-Modellbahn Studio

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

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

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 by Goetz
Lua code corrected

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.

railwaillantern.thumb.jpg.0af83dcbecb7a40ada53ebcc1bca71db.jpg

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. 

sunrisesunset.jpg.ff54956870c6a0b11a68f3aaf0d86cdb.jpg

Regards, Herman

 

 

Edited by Herman
translation

Create an account or sign in to comment

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.