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.

How to permanently save a Custom Camera UI view?

Featured Replies

Hello P3D community,

 

I need your help with the „Custom Camera UI„

 

As you might know, in P3D V2 there is a possibility to define you own camera view, using the „Custom Camera UI„ (http://www.prepar3d.com/SDKv2/LearningCenter/getting_started/view_system/custom_camera_ui.html)

 

This is a great option, but unfortunately this self-defined camera view will only be available in the current flight. If you
are abort this flight or close P3D your new camera view will be gone.

 

According to the P3D guys – there should be a way to save your self-defined camera view as a permanently camera view:

 

“Custom cameras are saved to the flight file when saving a flight in the "CameraLocation.X" section (Flight files are saved to the

%USERPROFILE%\Documents\Prepar3D v2 Files directory). To make custom cameras permanently available in the application

copy the appropriate fields to the Cameras.cfg file located in the %APPDATA%\Lockheed Martin\Prepar3D v2 directory.”  

 

So far so good -  – but I can make nothing of it.

 

I was able to define my own camera view, save the current flight and extract the "CameraLocation" section, which looks like this:

 

<Section Name="CameraLocation.0">
            <Property Name="Title" Value="C172 VC" />
            <Property Name="Translation" Value="0, 0, 0" />
            <Property Name="Rotation" Value="10.009750366210937, 0, 0" />
            <Property Name="Zoom" Value="0.60000002384185791" />
            <Property Name="FOV" Value="77.670242309570313, 53.417961120605469" />
            <Property Name="ExcludeVC" Value="False" />
            <Property Name="ExcludeVcPanelsSensor" Value="False" />
            <Property Name="Parent" Value="{C95EAB58-9E4A-4E2A-A34C-D8D9D948F078}" />
            <Property Name="PostProcess.0" Value="HDRPostProcess" />
        </Section>

 

Now the great questions is, how to integrate this into the “Cameras.cfg” file?

A typical  data set entry in the “Cameras.cfg” file looks like this:

 

[CameraDefinition.002]
Title = Virtual Cockpit
Guid = {C95EAB58-9E4A-4E2A-A34C-D8D9D948F078}
Description = This is the description of the virtual cockpit view.
Origin = Virtual Cockpit
MomentumEffect = Yes
SnapPbhAdjust = Swivel
SnapPbhReturn = False
PanPbhAdjust = Swivel
PanPbhReturn = False

Track = None
ShowAxis = YES
AllowZoom = TRUE
InitialZoom = 0.7
SmoothZoomTime = 2.0

ZoomPanScalar = 1.0
ShowWeather = Yes
XyzAdjust = TRUE
ShowLensFlare=FALSE
Category = Cockpit
PitchPanRate=30
HeadingPanRate=75
PanAcceleratorTime=0
HotKeySelect=1

 

I don´t see how to copy the camera info’s from the saved flight into the “Cameras.cfg” file.

 

Does anybody has an idea? Any help is greatly appreciated : )

 

Best regards
chris 

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.