FMotionBricksBake
- Module
- Animation
- Header
#include "Animation/MotionBricksBake.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static constexpr int64_t | skSchemaVersion | Default 1. |
Public functions
| Returns | Name | Description |
|---|---|---|
std::string | RequestToText | |
bool | ParseRequestText | |
bool | SaveRequest | |
std::string | StreamToText | |
bool | ParseStreamText | |
bool | LoadStream | |
bool | SaveStream | |
bool | ValidateStream | A stream must be a tree in parent-first order with every frame sized to its bone table; anything else is refused before it reaches the retargeter, whose failure mode is a silent T-pose rather than an error. |
Ref<Skeleton> | BuildSourceSkeleton | |
bool | BakeClip | Retargets every frame onto target (name matching + the options' remaps and chains) and writes one key per frame per target bone into outClip, ticks = frames, ticksPerSecond = the stream's fps. |
bool | SaveClip | The baked clip as a file (.brickclip, MDF), so a bake outlives the editor session that made it and the clip editor can pick it up. |
bool | LoadClip | |
bool | LoadToolConfig | Reads the INI above, or the MDF it replaced (MotionBricks { command: ... |
bool | ParseToolConfigText | |
std::string | ToolConfigPath | The project's tool config file, its legacy MDF converted on first touch. |
bool | ConvertLegacyToolConfig | |
std::string | BuildCommandLine |
Function details
RequestToText
static std::string RequestToText(const FMotionBricksBakeRequest& request)ParseRequestText
static bool ParseRequestText(const std::string& text, FMotionBricksBakeRequest& outRequest, std::string* outError)SaveRequest
static bool SaveRequest(const std::string& path, const FMotionBricksBakeRequest& request)StreamToText
static std::string StreamToText(const FMotionBricksPoseStream& stream)ParseStreamText
static bool ParseStreamText(const std::string& text, FMotionBricksPoseStream& outStream, std::string* outError)LoadStream
static bool LoadStream(const std::string& path, FMotionBricksPoseStream& outStream, std::string* outError)SaveStream
static bool SaveStream(const std::string& path, const FMotionBricksPoseStream& stream)ValidateStream
static bool ValidateStream(const FMotionBricksPoseStream& stream, std::string* outError)A stream must be a tree in parent-first order with every frame sized to its bone table; anything else is refused before it reaches the retargeter, whose failure mode is a silent T-pose rather than an error.
BuildSourceSkeleton
static Ref<Skeleton> BuildSourceSkeleton(const FMotionBricksPoseStream& stream)BakeClip
static bool BakeClip(const FMotionBricksPoseStream& stream, const Skeleton& target, const FRetargetOptions& options, const std::string& clipName, AnimationClip& outClip, FMotionBricksBakeStats* outStats, std::string* outError)Retargets every frame onto target (name matching + the options' remaps and chains) and writes one key per frame per target bone into outClip, ticks = frames, ticksPerSecond = the stream's fps.
SaveClip
static bool SaveClip(const std::string& path, const AnimationClip& clip)The baked clip as a file (.brickclip, MDF), so a bake outlives the editor session that made it and the clip editor can pick it up. Channels carry bone NAMES; indices are re-bound against whichever skeleton loads it.
LoadClip
static bool LoadClip(const std::string& path, AnimationClip& outClip, std::string* outError)LoadToolConfig
static bool LoadToolConfig(const std::string& path, FMotionBricksToolConfig& outConfig)Reads the INI above, or the MDF it replaced (MotionBricks { command: ... }) when handed a legacy path.
ParseToolConfigText
static bool ParseToolConfigText(const std::string& text, FMotionBricksToolConfig& outConfig)ToolConfigPath
static std::string ToolConfigPath(const std::string& projectConfigDir)The project's tool config file, its legacy MDF converted on first touch.
ConvertLegacyToolConfig
static bool ConvertLegacyToolConfig(const MDF::MdfDocument& legacy, FConfigIniFile& out)BuildCommandLine
static std::string BuildCommandLine(const FMotionBricksToolConfig& config, const std::string& requestPath, const std::string& outputPath)