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.

scripting question

Featured Replies

Hi Oliver,

I searched Views and found  'Toggle Chaseplane' which is what I'm looking for.

Assigned it to a button on my yoke and no luck. I do get a green light on/off when pressing the button though. I'm assuming here that that Toggle Chaseplane=Spot  but not sure.

Any ideas?

Thanks,

Mark

 

  • Author

Yes. I think it was in scripting under views? I'm not at my computer right now.

I'm trying to get from the VC to spot view, then from spot view back to the VC with the same yoke button if possible. Wax on, wax off. I've been able to almost achieve this with the 'S' button assigned to a yoke button and using 'CycleHidden=Yes' in cameras.cfg but not quite there yet. One view won't properly hide :>)

I was also digging last night and found one of your posts from 2018 regarding HotSelectKey=x which I thought I may be able to use in some way.

Edited by newtie
..

  • Commercial Member

Sounds to me like you have some third party scripts in AAO. I'm not familiar with any default script group called "Views". 

If you want to use AAO, do this (0. Read the AAO manual, chapter about RPN scripting)

  1. Start the sim, start AAO, wait until you are sitting in the cockpit
  2. In AAO go to "Scripting->RPN Scripts Editor"
  3. Type "SpotToggle" into the "Script title" box
  4. Select "Scripts" in the "Script group" box below
  5. Copy and paste this code into the big white editor box, exactly as it is. Don't chage a single thing, especially not space characters or brackets.
1 (L:CamState) - (>L:CamState) (L:CamState) 0 == if{ (CHANGEVIEW:Spot) } els{ (CHANGEVIEW:Virtual Cockpit) }

6. Press "Save as New"
7. Press "Test" to make sure that it works.
8. Close the Editor

Then simply assign "Scripts->SpotToggle" to your button.

Just as a reminder: this only works in P3D, the other sims don't have these commands. And it has nothing whatsoever to do with any camera addon, this is all simulator default functionality. The names of the cameras are those from the aircraft.cfg and cameras.cfg in the sim = the names that you see in the right-click context menu in P3D when you change the camera with the mouse. You can type those names directly into the (CHANGEVIEW:) command in AAO as shown above.
 

Edited by Lorby_SI

LORBY-SI

  • Author

Hi Oliver,

Followed all directions and the script seems to be functioning, that is, I get a green light when depressing the yoke button in AAO, but nothing toggles. I added screenshots just in case.

script2.png
script1.png

 

  • Author

Sorry for the delay. Just got back from my local community college where I took an introductory class, "Copying, Selecting  and Pasting for Old People".

This works perfect Oliver, exactly what I was looking for! I'll look at CHANGEVIEW a bit later just for my own information, after I complete the second part of my community class. 😁

Mark

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.