Provides access to members that control the scene animation tracks.
| Description | ||
|---|---|---|
![]() |
AddTrack | Adds a track to the collection. |
![]() |
AnimationTypes | The objects that describe the registered types of animation. |
![]() |
ApplyTracks | Plays the enabled animation tracks in the given viewer (in all if null). |
![]() |
ChangePriority | Changes the priority (index) of the track. |
![]() |
DetachObject | Detach an object from all tracks it is attached to. |
![]() |
FindTrack | Finds a track by name. |
![]() |
LoadTracks | Load the animation tracks from a stream. |
![]() |
RefreshAttachedObjects | Detaches from the tracks those objects that no longer exist. |
![]() |
RemoveAllTracks | Removes all tracks. |
![]() |
RemoveTrack | Removes a track from the collection. |
![]() |
SaveTracks | Save the animation tracks to a stream. |
![]() |
TrackCount | The number of tracks. |
![]() |
Tracks | The animation tracks. |
![]() |
TracksOfType | The animation tracks of a given type. |
| CoClasses and Classes | Description |
|---|---|
| Globe (esriGlobeCore) | A container for the display and manipulation of data in the Globe. |
| Scene | A container for the display and manipulation of data. |
AnimationTracks can be considered as a container/collection of all animation tracks in a Scene object. IAnimationTracks encapsulates the properties and methods related to managing all animation tracks associated with the scene.
Assuming you have created an animation track in the scene, you can use the following method to get the track collection in VBA:
Sub FindNumberOfTracks()
Dim pDoc As ISxDocument
Set pDoc = ThisDocument
Dim pTracks As IAnimationTracks
'QI directly from IScene to IAnimationTracks:
Set pTracks = pDoc.Scene
MsgBox pTracks.TrackCount 'returns 1
End Sub