Navigation
API > API/Plugins > API/Plugins/MLDeformerFramework > API/Plugins/MLDeformerFramework/UMLDeformerMorphModel
Description
Set the per vertex deltas, as a set of floats. Each vertex delta must have 3 floats. 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]. The vertex ordering should be: [(x, y, z), (x, y, z), (x, y, z)]. This is the same as SetMorphTargetDeltas, except that this takes an array of floats instead of vectors.
| Name | SetMorphTargetDeltaFloats |
| 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 SetMorphTargetDeltaFloats
(
const TArray < float > & Deltas
)
Parameters
| Name | Remarks |
|---|---|
| Deltas | The array of floats that contains the deltas. The number of items in the array must be equal to (NumMorphs NumBaseMeshVerts 3). |