Struct AnimationFetch ​
Namespace: ValveResourceFormat.ResourceTypes.ModelAnimation
Assembly: ValveResourceFormat.dll
Represents an animation fetch that specifies a local cycle pose parameter.
public struct AnimationFetchConstructors ​
AnimationFetch(KVObject) ​
Initializes a new instance of the AnimationFetch struct.
public AnimationFetch(KVObject fetchKV)Parameters ​
fetchKV KVObject
The KeyValues object containing the fetch data.
Properties ​
FixedBlendWeight ​
Gets or sets whether the blend ignores its pose parameter and sits at a fixed weight.
public bool FixedBlendWeight { readonly get; set; }Property Value ​
bool
FixedBlendWeightValue ​
Gets or sets the weight a fixed blend sits at.
public float FixedBlendWeightValue { readonly get; set; }Property Value ​
float
GroupSize ​
Gets or sets the size of each blend dimension.
public int[] GroupSize { readonly get; set; }Property Value ​
int[]
Is1D ​
Gets or sets whether the sequence blends its references along one pose parameter.
public bool Is1D { readonly get; set; }Property Value ​
bool
Is2D ​
Gets or sets whether the sequence blends its references across two pose parameters.
public bool Is2D { readonly get; set; }Property Value ​
bool
LocalCyclePoseParameter ​
Gets or sets the local cycle pose parameter index.
public int LocalCyclePoseParameter { readonly get; set; }Property Value ​
int
LocalPose ​
Gets or sets the pose parameter index driving each blend dimension, -1 where unused.
public int[] LocalPose { readonly get; set; }Property Value ​
int[]
LocalReferenceArray ​
Gets or sets the entries of the sequence group name array the sequence plays, one per animation it blends between.
public int[] LocalReferenceArray { readonly get; set; }Property Value ​
int[]
PoseKeyArray ​
Gets or sets the pose parameter value each referenced animation sits at.
public float[] PoseKeyArray { readonly get; set; }Property Value ​
float[]
PoseKeyArray1 ​
Gets or sets the pose parameter value each referenced animation sits at on the second dimension of a two dimensional blend.
public float[] PoseKeyArray1 { readonly get; set; }Property Value ​
float[]
Methods ​
GetBlendWeight(int, float, float) ​
The weight one entry of AnimationFetch.LocalReferenceArray carries at the given live pose parameter values: bilinear across the grid when AnimationFetch.Is2D, otherwise linear along AnimationFetch.PoseKeyArray, or at AnimationFetch.FixedBlendWeightValue when the fetch ignores its pose parameter.
public readonly float GetBlendWeight(int index, float rowValue, float columnValue)Parameters ​
index int
rowValue float
columnValue float
Returns ​
float

