Navigation
API > API/Plugins > API/Plugins/DNACalibLib > API/Plugins/DNACalibLib/SetBlendShapeTargetDeltasCommand
Description
Available operations are: Interpolate, Add, Subtract and Multiply. Each delta is calculated based on the provided operation type in the following way: Interpolate: $newValue = previousValue * (1 - weight) + setValue * weight$ Add: $newValue = previousValue + (setValue * weight)$ Subtract: $newValue = previousValue - (setValue * weight)$ Multiply: $newValue = previousValue * (setValue * weight)$ setValue is the value from new deltas that were set, and weight is the value from masks array.
| Name | setOperation |
| Type | function |
| Header File | /Engine/Plugins/Animation/DNACalib/Source/DNACalibLib/Public/dnacalib/commands/SetBlendShapeTargetDeltasCommand.h |
| Include Path | #include "dnacalib/commands/SetBlendShapeTargetDeltasCommand.h" |
| Source | /Engine/Plugins/Animation/DNACalib/Source/DNACalibLib/Private/dnacalib/commands/SetBlendShapeTargetDeltasCommand.cpp |
void setOperation
(
VectorOperation operation
)
Parameters
| Name | Remarks |
|---|---|
| operation | The operation to use. |