ArcGIS Pro scene: arcpy.mp - can't get or set Camera Field Of View property

559
2
02-15-2022 11:32 PM
Tim_McGinnes
Occasional Contributor III

When using an ArcGIS Pro scene, it does not appear to be possible to get or set the Field Of View property using Python (arcpy.mp). The Camera properties do not include access to the FOV property:

https://pro.arcgis.com/en/pro-app/latest/arcpy/mapping/camera-class.htm 

Is there another way to get or set the FOV property using Python?

0 Kudos
2 Replies
CodyScott
Occasional Contributor
0 Kudos
Tim_McGinnes
Occasional Contributor III

Thanks for the tip @CodyScott. The only FOV setting in CIM Map was for animation keyframes, but I have found the relevant property in the CIMDocument part of the spec, under CIMMapView:

fieldOfView - double - The scene's field-of-view in degrees (value must be between 35 and 70). Only used when the scene is in Perspective draw mode.

https://github.com/Esri/cim-spec/blob/17eb261ec5f189d78e67996f356204931fb543d2/docs/v2/CIMDocument.m...

However I have not been able to access this property through arcpy, as both the ArcGISProject and MapView classes do not have a GetDefinition method. It looks like you can only access the CIM for Map, Layer, Table, and Layout through arcpy.

0 Kudos