Navigation
API > API/Plugins > API/Plugins/MLDeformerFramework
The model instance for the UMLDeformerMorphModel. This instance will assume the neural network outputs a set of weights, one for each morph target. The weights of the morph targets in the external morph target set related to the ID of the model will be set to the weights that the neural network outputs. The first morph target contains the means, which need to always be added to the results. Therefore the weight of the first morph target will always be forced to a value of 1.
| Name | UMLDeformerMorphModelInstance |
| Type | class |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFramework/Public/MLDeformerMorphModelInstance.h |
| Include Path | #include "MLDeformerMorphModelInstance.h" |
Syntax
UCLASS (MinimalAPI)
class UMLDeformerMorphModelInstance : public UMLDeformerModelInstance
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UMLDeformerModelInstance → UMLDeformerMorphModelInstance
Derived Classes
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| NextFreeMorphSetID | TAtomic< int32 > | The next free morph target set ID. This is used to generate unique ID's for each morph model. | MLDeformerMorphModelInstance.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FExternalMorphSetWeights * FindWeightData
(
int32 LOD |
Find the external morph target weight data for this model instance. | MLDeformerMorphModelInstance.h | |
int32 GetExternalMorphSetID() |
MLDeformerMorphModelInstance.h |
Overridden from UMLDeformerModelInstance
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
MLDeformerMorphModelInstance.h | ||
virtual void HandleZeroModelWeight () |
Handle when the model weight is zero. | MLDeformerMorphModelInstance.h | |
virtual void Init
(
USkeletalMeshComponent* SkelMeshComponent |
Initialize the model instance. | MLDeformerMorphModelInstance.h | |
virtual bool IsValidForDataProvider () |
Check if we are in a valid state for the deformer graph's data provider. | MLDeformerMorphModelInstance.h | |
virtual void PostMLDeformerComponentInit () |
Initialize this model, after the ML deformer component has been initialized. | MLDeformerMorphModelInstance.h | |
virtual void PostTick
(
bool bExecuteCalled |
Executed at the end of the tick. | MLDeformerMorphModelInstance.h |