Programmatically controlling ShowWeather state for a camera?

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Locked
adiemus
Posts: 120
Joined: Fri Mar 16, 2012 4:19 am
Contact:

Programmatically controlling ShowWeather state for a camera?

Post by adiemus »

Is there a way to programmatically control the state of the "ShowWeather" boolean for a camera? I can't find anything via the PDK or SimConnect. (I'm looking to simulate an imaging pod with multiple sensors, some of which can see through atmospheric moisture and some which can't)

In theory, I could create two essentially identical static camera definitions, one with ShowWeather=TRUE and the other FALSE, but the problem then is where to I put them? This is for a product that's a DLL module, so putting them in aircraft.cfg doesn't really work. Yes, I could use the global cameras.cfg, but that seems fragile and prone to breakage. Using add-on.xml seemed like a decent compromise except for the fact that it doesn't look like you can add camera definitions via that method.

What's the recommended way to proceed here?
Locked