ArcGIS Pro 3.2 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / CameraKeyframe Class
Members Example

In This Topic
    CameraKeyframe Class
    In This Topic
    Represents a keyframe in the CameraTrack.
    Object Model
    CameraKeyframe ClassCamera Class
    Syntax
    public sealed class CameraKeyframe : Keyframe 
    Public NotInheritable Class CameraKeyframe 
       Inherits Keyframe
    Remarks
    The camera keyframe stores the value of the camera and defines the transitions for each of the values of the camera.
    Example
    Camera Keyframes
    public List<CameraKeyframe> GetCameraKeyframes()
    {
      var mapView = MapView.Active;
      if (mapView != null)
        return null;
    
      var animation = mapView.Map.Animation;
      var cameraTrack = animation.Tracks.OfType<CameraTrack>().First(); //There will always be only 1 CameraTrack in the animation.
      return cameraTrack.Keyframes.OfType<CameraKeyframe>().ToList();
    }
    Inheritance Hierarchy

    System.Object
       ArcGIS.Desktop.Mapping.Keyframe
          ArcGIS.Desktop.Mapping.CameraKeyframe

    Requirements

    Target Platforms: Windows 11, Windows 10

    ArcGIS Pro version: 3 or higher.
    See Also