Class Skeleton
Namespace: ValveResourceFormat.Animation
Assembly: ValveResourceFormat.dll
An animation skeleton: bone hierarchy, reference pose and bone masks.
public class SkeletonInheritance
object ← Skeleton
Constructors
Skeleton(KVObject)
Reads the Skeleton from its KeyValues3 data.
public Skeleton(KVObject data)Parameters
data KVObject
Properties
BoneIDs
The ID of each bone.
public StringToken[] BoneIDs { get; }Property Value
ContactConfigs
The contact point configurations.
public Skeleton.ContactConfig[] ContactConfigs { get; }Property Value
FloatChannelSets
The float channel sets.
public FloatChannelSet[] FloatChannelSets { get; }Property Value
GameplayRelevantBoneIndices
The bones relevant to gameplay.
public int[] GameplayRelevantBoneIndices { get; }Property Value
int[]
ID
The skeleton ID.
public StringToken ID { get; }Property Value
IsPropSkeleton
Whether this is a prop skeleton.
public bool IsPropSkeleton { get; }Property Value
bool
MaskDefinitions
The bone mask definitions.
public BoneMaskSetDefinition[] MaskDefinitions { get; }Property Value
ModelSpaceReferencePose
The reference pose in model space.
public FrameBone[] ModelSpaceReferencePose { get; }Property Value
NumBonesToSampleAtLowLOD
The number of leading bones sampled at low LOD.
[KVProperty("m_numBonesToSampleAtLowLOD")]
public int NumBonesToSampleAtLowLOD { get; }Property Value
int
ParentIndices
The parent index of each bone, -1 for roots.
public int[] ParentIndices { get; }Property Value
int[]
ParentSpaceReferencePose
The reference pose with each bone relative to its parent.
public FrameBone[] ParentSpaceReferencePose { get; }Property Value
SecondarySkeletons
Skeletons attached to bones of this one.
public Skeleton.SecondarySkeleton[] SecondarySkeletons { get; }Property Value
SpecialDependencyHash
A hash of the special dependencies.
public long SpecialDependencyHash { get; }Property Value
long
Methods
GetBoneIndex(StringToken)
Gets the index of a bone, or -1 if not found.
public int GetBoneIndex(StringToken boneID)Parameters
boneID StringToken
Returns
int
GetBoneMaskIndex(StringToken)
Gets the index of a bone mask definition, or -1 if not found.
public int GetBoneMaskIndex(StringToken boneMaskID)Parameters
boneMaskID StringToken
Returns
int
GetParentBoneIndex(int)
Gets the parent index of a bone, or -1 for roots and invalid bones.
public int GetParentBoneIndex(int boneIdx)Parameters
boneIdx int
Returns
int
GetResolvedMaskWeights(int)
Gets per-bone weights for a mask definition, mapping its bone ID list onto this skeleton. Bones the mask does not list take their weights from the listed bones around them.
public float[] GetResolvedMaskWeights(int maskIndex)Parameters
maskIndex int
Returns
float[]

