Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

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.

Fenix PFD/ND Dim Lights

Featured Replies

Hello,

I'm currently in the process of familiarizing myself with AAO.

I have already integrated various Fenix scripts and it works very well.

Now I would like to connect the two potentiometers to my Logitech X56 HOTAS with the dimmer of the PFD/ND. There is the template "<UseTemplate Name="FNX32X_Interact_Knob_Increment_Lock_Template"> in the Fenix_Interieur.xml
The only question is how do I have to integrate this template/variable into AAO?

Thanks for your support 🤩

Holger

  • Commercial Member
6 hours ago, HoPla said:

The only question is how do I have to integrate this template/variable into AAO?

Reading Behavior source code is very complex. Behavior code relies heavily on an inheritance structure. It is not enough to look at just this one generic template, you have to follow the entire code tree from top to bottom, write down the various parameters, until you reach the required interaction code, then reassemble everything using your notes into usable RPN Code.

The better option is to use the MSFS debug mode. Activate the debug mode, open "Tools->Behabiors", click back into the sim, then hover the mouse over the knob/button/lever that you are interested in and press Ctrl - G. In most cases this brings up the behavior code of that component, and you can check out the Interaction components (Mouse Rects, Single clicks, mouse wheel etc.) and replicate the code that is in there.

Or go to flightsim.to and download a ready-made script package for the aircraft. Never mind if it was made for example for the StreamDeck. You can still import and use (only) the scripts package in AAO.

Here are the scripts for the PFD and MFD brightness (assuming that this is what you meant?)

PFD L DEC: 
(L:A_DISPLAY_BRIGHTNESS_CO,·number)·0.1·-·0·max·(>L:A_DISPLAY_BRIGHTNESS_CO,·number)

PFD L INC:
(L:A_DISPLAY_BRIGHTNESS_CO,·number)·0.1·+·1·min·(>L:A_DISPLAY_BRIGHTNESS_CO,·number)

MFD L DEC
(L:A_DISPLAY_BRIGHTNESS_CI,·number)·0.1·-·0·max·(>L:A_DISPLAY_BRIGHTNESS_CI,·number)

MFD L INC
(L:A_DISPLAY_BRIGHTNESS_CI,·number)·0.1·+·1·min·(>L:A_DISPLAY_BRIGHTNESS_CI,·number)

(right side are the same scripts, but the Variables are called FO and FI)
 

LORBY-SI

Create an account or sign in to comment

Account

Navigation

Search

Search

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.