ArcGIS Pro 2.7 API Reference Guide
CreateKeyframe(Camera,TimeSpan,AnimationTransition,Double) Method

ArcGIS.Desktop.Mapping Namespace > CameraTrack Class > CreateKeyframe Method : CreateKeyframe(Camera,TimeSpan,AnimationTransition,Double) Method
The value of the camera.
The time at which to insert the keyframe in the track.
The transition for all values of the camera. In the UI the default is ArcGIS.Core.CIM.AnimationTransition.FixedArc.
A value indicating the shape of the curve for adjustable transitions. The value must be between 0.0 and 1.0. Smaller values will result in a tighter / smaller curve than larger values.
Create a new keyframe.
Syntax
Public Overloads Function CreateKeyframe( _
   ByVal camera As Camera, _
   ByVal atTime As TimeSpan, _
   ByVal transition As AnimationTransition, _
   ByVal transitionScale As Double _
) As Keyframe

Parameters

camera
The value of the camera.
atTime
The time at which to insert the keyframe in the track.
transition
The transition for all values of the camera. In the UI the default is ArcGIS.Core.CIM.AnimationTransition.FixedArc.
transitionScale
A value indicating the shape of the curve for adjustable transitions. The value must be between 0.0 and 1.0. Smaller values will result in a tighter / smaller curve than larger values.
Remarks
If a keyframe already exists at that time it will be overwritten. The time is rounded to the nearest millisecond. When you create a keyframe the specified transition will be used for all the values of the camera. It is possible to change the transitions for the individual values of the camera by settting the transition for the value on the keyframe./>
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

CameraTrack Class
CameraTrack Members
Overload List