Navigation
API > API/Plugins > API/Plugins/MLDeformerFramework > API/Plugins/MLDeformerFramework/UMLDeformerModelInstance
Description
Update the neural network input values directly inside its input tensor. This will copy over the bone transforms (and possibly morph and curve weights) into this flat array.
| Name | SetNeuralNetworkInputValues |
| Type | function |
| Header File | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFramework/Public/MLDeformerModelInstance.h |
| Include Path | #include "MLDeformerModelInstance.h" |
| Source | /Engine/Plugins/Animation/MLDeformer/MLDeformerFramework/Source/MLDeformerFramework/Private/MLDeformerModelInstance.cpp |
virtual int64 SetNeuralNetworkInputValues
(
float * InputData,
int64 NumInputFloats
)
Returns the new buffer element index. For example if there were 2 bones and 3 curves, and each bone takes 6 inputs and each curve takes one input, then after calling this base class method, it will return 15 (2*6 + 3*1). You could call this base class method and then write data after that, starting from the offset that is returned.
Parameters
| Name | Remarks |
|---|---|
| InputData | The buffer of floats to write the input values to. |
| NumInputFloats | The number of floats of the InputData buffer. Do not write more than this number of floats to the InputData buffer. |