Navigation
API > API/Plugins > API/Plugins/MLDeformerFramework > API/Plugins/MLDeformerFramework/UMLDeformerMorphModel
Description
Set the morph target model deltas as an array of 3D vectors. These deltas are used to generate compressed morph targets internally. You typically call this method from inside the python training script once your morph target deltas have been generated there. Concatenate all deltas into one buffer, so like this [morphdeltas_target0, morphdeltas_target1, ..., morphdeltas_targetN]. This is the same as SetMorphTargetDeltaFloats, except that it takes vectors instead of floats.
| Name | SetMorphTargetDeltas |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFramework/Public/MLDeformerMorphModel.h |
| Include Path | #include "MLDeformerMorphModel.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFramework/Private/MLDeformerMorphModel.cpp |
UFUNCTION (BlueprintCallable, Category="MLDeformerMorphModel")
void SetMorphTargetDeltas
(
const TArray < FVector3f > & Deltas
)
Parameters
| Name | Remarks |
|---|---|
| Deltas | The array of 3D vectors that contains the vertex deltas. The number of items in the array must be equal to (NumMorphs * NumBaseMeshVerts). |