Jump to content
Zum Start hinzufügen

Weitere Informationen

3D-Modellbahn Studio

Eine Vollbild-App auf Ihrem Startbildschirm mit Push-Benachrichtigungen und mehr.

So installieren Sie diese App auf iOS und iPadOS
  1. Tippen Sie auf das Teilen-Symbol in Safari
  2. Scrollen Sie durch das Menü und tippen Sie auf Zum Startbildschirm hinzufügen.
  3. Tippen Sie oben rechts auf Hinzufügen.
So installieren Sie diese App auf Android
  1. Tippen Sie auf das 3-Punkte-Menü (⋮) in der oberen rechten Ecke des Browsers.
  2. Tippen Sie auf Zum Startbildschirm hinzufügen oder App installieren.
  3. Bestätigen Sie durch Tippen auf Installieren.

Empfohlene Beiträge

Geschrieben

I set an object variable for severa; trains (Camera).  It shows in the EV with the correct value.   I read the name of a loco with $_Trigger1._Name.  I store that name in a global

variable.  Can I now read the name of the camera for that train, and tell the EV to activate that camera?

Geschrieben

Hello Curt,

yes. See the attached example.

Referring variable contents.mbp

Click to the switch to start and stop the train.

Many greetings
BahnLand

Geschrieben

Why not just use $(_Trigger1.Camera) ?

Geschrieben

Hello Trevor,

you are quite right. Even you can avoid the parantheses here.

But the aim of the example above was to explain how different variations of global and object variables may be used to buffer and later evaluate some object properties. See here the optimized example (without "buffer variables").

Using loco object variables directly.mbp

Many greetings
BahnLand

 

Bearbeitet von BahnLand

Geschrieben
On ‎24‎/‎09‎/‎2016 at 11:15 AM, BahnLand said:

Hello Trevor,

you are quite right. Even you can avoid the parantheses here.

But the aim of the example above was to explain how different variations of global and object variables may be used to buffer and later evaluate some object properties. See here the optimized example (without "buffer variables").

Using loco object variables directly.mbp

Many greetings
BahnLand

 

I agree. However, it is generally bad practice to use global variables if you do not have to. On a simple layout you might get away with it, but the more things you have happening the more opportunity there is for multiple objects to be referencing the same variable at the same time with unpredictable results.

Erstelle ein Benutzerkonto oder melde dich an, um zu kommentieren

Push-Benachrichtigungen konfigurieren

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.