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)
Resolves 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 SequenceAnimation.BoneMaskName.
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
Dictionary<string, string>
GetMorphMasks(FlexController[])
Gets morph masks by name, each mapping every flex controller to a weight. Unlisted controllers use the mask's default weight (1 if omitted). A mask name scopes both bones (EmbeddedSequenceGroup.GetBoneMasks()) 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 SequenceAnimation.PoseParameterNames names one of these per blend dimension.
public List<PoseParameter> GetPoseParameters()
