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.

Change SD object color depending on variable value

Featured Replies

Hi, all. I'm totally new in this so sorry if this has been answered before or this is not the right place to put the question. I've created an object for SD and SD+ that shows AIRSPEED INDICATED value. I'd like to change the background of the object to yellow or red if the indicated airspeed of the aircraft falls into the dangerous zones. Of course every aircraft has different yellow and red AS zones. Is it possible to do this with a script in AAO? Has anyone created a sample I could use to learn?

I have been using AAO for only two days but I won't fly without it anymore. Very good job!!

Best regards, 

*******

 

  • Commercial Member
21 minutes ago, VillaJota said:

Is it possible to do this with a script in AAO?

Not in AAO, you do that on the StreamDeck itself. But there are about a dozen different ways to do it. The best option is probably a MultiGauge Action, where you can have an infinite number of image layers and you can set the visibility of each with RPN code or a variable. So you would create a yellow picture and a red one, add both as image layers and handle their visibility according to what you need. On top of them you add a text layer with your text output.
Alternatively use a slider gauge. Make an image strip consisting of a red square and a yellow square, and use a SliderGauge action to pull it into position with a script in the action.On the same gauge you can also display your text.
Or... find another creative alternative, there are many. Feel free to alter the SD plugin, it is ultimately just a JavaScript example for using the AAO WebAPI.
Did you see the PDF document that came with the AAO SD Plugin? 

21 minutes ago, VillaJota said:

Has anyone created a sample I could use to learn?

Several. Go to flightsim.to, there are many AAO StreamDeck profiles for different aircraft availavble for download, made by talented simmers (don't forget to buy them a coffee!). 

Edited by Lorby_SI

LORBY-SI

  • Author
Quote

Did you see the PDF document that came with the AAO SD Plugin?

No, I had not seen it, but I've just taken a fast look into it and I think that Multigauge is what I need, thanks! Now my problem is finding the right variables... I've made a search and I have not found speed limits as variables, but this probably must be questioned in another forum 🙂I'm really new programming MSFS, this is a whole new world, but I don't think it will be more difficult than C# 

Maybe I'll ask chatGPT 😆I have already seen the profiles in Flightsim.to and downloaded some... and coffees and on their way.

Thank you very much, 

******* 

Archived

This topic is now archived and is closed to further replies.

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.