Class AnimationClip
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation2
Assembly: ValveResourceFormat.dll
Represents an animation clip with compressed pose data.
public class AnimationClip : BinaryKV3Inheritance
object ← Block ← BinaryKV3 ← AnimationClip
Inherited Members
BinaryKV3.Type, BinaryKV3.MAGIC0, BinaryKV3.MAGIC1, BinaryKV3.MAGIC2, BinaryKV3.MAGIC3, BinaryKV3.MAGIC4, BinaryKV3.MAGIC5, BinaryKV3.IsBinaryKV3(uint), BinaryKV3.Data, BinaryKV3.Encoding, BinaryKV3.Format, BinaryKV3.Read(BinaryReader), BinaryKV3.GetKV3File(), BinaryKV3.WriteText(IndentedTextWriter), BinaryKV3.ConvertBinaryKV3ToText(nint, int), BinaryKV3.Serialize(Stream), Block.Type, Block.Offset, Block.Size, Block.Resource, Block.Read(BinaryReader), Block.ToString(), Block.WriteText(IndentedTextWriter), Block.Serialize(Stream)
Extension Methods
ResourceDataExtensions.AsKeyValueCollection(Block)
Properties
CompressedPoseData
Gets the compressed pose data.
public byte[] CompressedPoseData { get; }Property Value
byte[]
CompressedPoseOffsets
Gets the byte offsets for each compressed pose frame.
public long[] CompressedPoseOffsets { get; }Property Value
long[]
Duration
Gets the duration of the animation in seconds.
public float Duration { get; }Property Value
Name
Gets the name of the animation clip.
public string Name { get; }Property Value
NumFrames
Gets the number of frames in the animation.
public int NumFrames { get; }Property Value
SecondaryAnimations
Gets the secondary animations associated with this clip.
public AnimationClip[] SecondaryAnimations { get; }Property Value
SkeletonName
Gets the name of the skeleton this animation is for.
public string SkeletonName { get; }Property Value
TrackCompressionSettings
Gets the compression settings for each animation track.
public TrackCompressionSetting[] TrackCompressionSettings { get; }Property Value
Methods
Read(BinaryReader)
Reads the block data from a binary reader.
public override void Read(BinaryReader reader)Parameters
reader BinaryReader
The binary reader to read from.
ReadFrame(int, FrameBone[])
Reads and decompresses a specific frame of animation data into the provided bone array.
public void ReadFrame(int frameIndex, FrameBone[] bones)Parameters
frameIndex int
The index of the frame to read.
bones FrameBone[]
The array of bones to populate with frame data.

