ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Desktop.Mapping Namespace / Track Class / Keyframes Property
Example

In This Topic
    Keyframes Property (Track)
    In This Topic
    Gets the collection of keyframes for the track.
    Syntax
    Public ReadOnly Property Keyframes As IReadOnlyList(Of Keyframe)
    public IReadOnlyList<Keyframe> Keyframes {get;}
    Example
    Camera Keyframes
    {
      var animation = mapView.Map.Animation;
      var cameraTrack = animation.Tracks.OfType<CameraTrack>().First(); //There will always be only 1 CameraTrack in the animation.
      var result = cameraTrack.Keyframes.OfType<CameraKeyframe>().ToList();
      //Use the camera keyframes (if any)
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also