Sign in to follow this  
clumsy

How to permanently save a Custom Camera UI view?

Recommended Posts

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 

Share this post


Link to post
Help AVSIM continue to serve you!
Please donate today!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this