Navigation
API > API/Plugins > API/Plugins/MLDeformerFrameworkEditor > API/Plugins/MLDeformerFrameworkEditor/UMLDeformerTrainingModel
Description
Set the current sample frame. This will internally call the SampleFrame method, which will update the deltas, curve values and bone rotations. You call this before getting the input bone/curve and vertex delta values.
| Name | SetCurrentSampleIndex |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Public/MLDeformerTrainingModel.h |
| Include Path | #include "MLDeformerTrainingModel.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFrameworkEditor/Private/MLDeformerTrainingModel.cpp |
UFUNCTION (Meta=(DeprecatedFunction, DeprecationMessage="Please use NextSample instead."))
bool SetCurrentSampleIndex
(
int32 Index
)
Returns true when successful, or false when the specified sample index is out of range.
Parameters
| Name | Remarks |
|---|---|
| Index | The training data frame/sample number. |