# Sandbox.AnimGraphDirectPlayback

For communicating with a Direct Playback Anim Node, which allows code to tell it to play a given sequence

- Kind: class
- Namespace: `Sandbox`
- Assembly: `Sandbox.Engine`
- Modifiers: abstract

## Properties

- [`AnimationCount`](/api/Sandbox.AnimGraphDirectPlayback/AnimationCount): Get the number of animations that can be used.
- [`Animations`](/api/Sandbox.AnimGraphDirectPlayback/Animations): Get the list of animations that can be used.
- [`Duration`](/api/Sandbox.AnimGraphDirectPlayback/Duration): The duration of the currently playing sequence (seconds)
- [`Name`](/api/Sandbox.AnimGraphDirectPlayback/Name): Returns the currently playing sequence.
- [`Sequences`](/api/Sandbox.AnimGraphDirectPlayback/Sequences): Get the list of sequences that can be used.
- [`StartTime`](/api/Sandbox.AnimGraphDirectPlayback/StartTime): Set the time at which the currently playing sequence should have had a cycle of zero. This will adjust the current cycle of the sequence to match.
- [`Time`](/api/Sandbox.AnimGraphDirectPlayback/Time): The elapsed time of the currently playing animation sequence (seconds)
- [`TimeNormalized`](/api/Sandbox.AnimGraphDirectPlayback/TimeNormalized): Get the cycle of the currently playing sequence.  Will return 0 if no sequence is playing.

## Methods

- [`Cancel`](/api/Sandbox.AnimGraphDirectPlayback/Cancel): Stop playing the override sequence.
- [`Play`](/api/Sandbox.AnimGraphDirectPlayback/Play): Play the given sequence until it ends, then blend back. Calling this function with a new sequence while another one is playing will immediately start blending from the old one to the new one.
