FPoseAsset
The .pose asset (UE's UPoseAsset): a set of named poses over a shared bone list, applied either as deltas from a base pose (the normal case — a corrective, a facial shape, a hand grip) or as full local transforms.
- Module
- Animation
- Header
#include "Animation/PoseAsset.h"- Namespace
Mowo
It is a FILE and not a child of the .animgraph on purpose. A mirror table is fifty short name pairs and belongs inside the graph document; a pose asset is one transform per tracked bone per pose, is shared by several controllers, and inlining it would copy the bulk into every graph that names it and make the .animgraph diff unreadable. It is pure data — resolution against a skeleton is a static — so one asset drives any number of skeletons.
Properties
| Type | Name | Description |
|---|---|---|
bool | additive | Additive is the default because it is the only mode that composes: a corrective read as a full pose would overwrite whatever the graph put on those bones instead of adding to it. Default true. |
std::string | basePoseName | Pose the deltas are measured from. Empty = the skeleton's bind pose, which is what an exported corrective set is authored against. |
std::vector<std::string> | bones | |
std::vector<FPoseAssetPose> | poses |
Public functions
| Returns | Name | Description |
|---|---|---|
int32_t | FindPose | |
void | Resolve | |
void | Apply | weights is index-parallel with poses (a shorter vector reads as zero for the rest). |
void | Serialize | |
bool | Deserialize | |
bool | SaveToFile | |
bool | LoadFromFile |
Function details
FindPose
int32_t FindPose(const std::string& name) constResolve
static void Resolve(const FPoseAsset& asset, const Skeleton& skeleton, FPoseAssetResolved& out)Apply
static void Apply(const FPoseAsset& asset, const FPoseAssetResolved& resolved, const std::vector<float>& weights, float alpha, std::vector<Mat4>& pose)weights is index-parallel with poses (a shorter vector reads as zero for the rest). alpha scales every contribution, so a node eases in through the field the rest of the graph already means "how much" by. Writes in place: the caller's pose is the base the deltas land on.
Serialize
void Serialize(MdfNode& node) constDeserialize
bool Deserialize(const MdfNode& node)SaveToFile
static bool SaveToFile(const FPoseAsset& asset, const std::string& path)LoadFromFile
static bool LoadFromFile(const std::string& path, FPoseAsset& out)