Navigation
API > API/Plugins > API/Plugins/MLDeformerFramework > API/Plugins/MLDeformerFramework/UMLDeformerMorphModel
Description
Set the maximum weights for each morph target when we pass the training inputs into the trained neural network. After training we run the inputs through the trained network, and get the weights for each morph target. The array passed to this function must be the maximum of the absolute weight value over all training samples for each specific morph. We use this to scale the morph target deltas to get an estimate of the maximum length they will ever have, which we can in turn use to estimate how important a given morph target is. Keep in mind that these are the maximum of the absolute weights. As weights can be negative, we first take the absolute value of them. Training python scripts mostly will call this function to set the values.
| Name | SetMorphTargetsMaxWeights |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFramework/Public/MLDeformerMorphModel.h |
| Include Path | #include "MLDeformerMorphModel.h" |
UFUNCTION (BlueprintCallable, Category="MLDeformerMorphModel")
void SetMorphTargetsMaxWeights
(
const TArray < float > & MaxWeights
)
Parameters
| Name | Remarks |
|---|---|
| MaxWeights | The maximum of the absolute weight values. |