Class EmbeddedSequenceGroup
Namespace: ValveResourceFormat.ResourceTypes.ModelData
Assembly: ValveResourceFormat.dll
A model's embedded animation data: the animation and decode blocks, plus the legacy (AG1) sequence group holding the bone masks, morph masks, pose parameters and faceposer folders its sequences are written against. Empty or null throughout for a model that carries none.
public sealed class EmbeddedSequenceGroupInheritance
object ← EmbeddedSequenceGroup
Constructors
EmbeddedSequenceGroup(Resource)
Initializes a new instance of the class by resolving a model's embedded_animation block references.
public EmbeddedSequenceGroup(Resource resource)Parameters
resource Resource
Properties
AnimationData
Gets the compiled animation data, or null when the model carries none.
public KVObject? AnimationData { get; }Property Value
KVObject?
DecodeKey
Gets the animation group's decode key, or null when the model carries no embedded animation.
public KVObject? DecodeKey { get; }Property Value
KVObject?
Empty
The group a model with no embedded animation at all gets.
public static EmbeddedSequenceGroup Empty { get; }Property Value
SequenceData
Gets the compiled legacy sequence group, or null when there is none.
public KVObject? SequenceData { get; }Property Value
KVObject?
Methods
GetBoneMasks()
Gets the named bone masks, mapping each mask name to its per-bone weights. A sequence names the mask it plays with through .
public Dictionary<string, Dictionary<string, float>> GetBoneMasks()Returns
Dictionary<string, Dictionary<string, float>>
GetFaceposerFolders()
Gets the faceposer folders, mapping each animation name to the folder it is filed under.
public Dictionary<string, string> GetFaceposerFolders()Returns
GetMorphMasks(FlexController[])
Gets the named morph controller masks, mapping each mask name to a weight for every flex controller. A controller the mask does not list carries the mask's own default weight, itself 1 when the compiled data omits it. A mask name scopes both bones () and flex controllers.
public Dictionary<string, Dictionary<string, float>> GetMorphMasks(FlexController[] flexControllers)Parameters
flexControllers FlexController[]
Returns
Dictionary<string, Dictionary<string, float>>
GetPoseParameters()
Gets the named pose parameters. A blend sequence's
names one of these per blend dimension.public List<PoseParameter> GetPoseParameters()
