Navigation
API > API/Plugins > API/Plugins/GeneSplicerLib > API/Plugins/GeneSplicerLib/PoolSpliceParams
Warnings * The weight count must be equal to the region count multiplied by the number of DNAs whose weights are being set by the call.
Description
All values will be copied.
The weight count must be equal to the region count multiplied by the number of DNAs whose weights are being set by the call. Initially when PoolSpliceParams is created weights are filled with zeros. For the sake of example lets say we have 2 Regions and 4 DNAs. Which translates to: Region-0 Region-1 DNA-0 0.0 0.0 DNA-1 0.0 0.0 DNA-2 0.0 0.0 DNA-3 0.0 0.0 after calling setSpiceWeights with dnaStartIndex = 1, weights=[0.1f, 0.9f, 0.4f, 05f], count = 4 Weights will chagne for DNAs with indices 1 and 2: Region-0 Region-1 DNA-0 0.0 0.0 DNA-1 0.1 0.9 DNA-2 0.4 0.5 DNA-3 0.0 0.0
| Name | setSpliceWeights |
| Type | function |
| Header File | /Engine/Plugins/Animation/GeneSplicer/Source/GeneSplicerLib/Public/genesplicer/splicedata/PoolSpliceParams.h |
| Include Path | #include "genesplicer/splicedata/PoolSpliceParams.h" |
void setSpliceWeights
(
std::uint16_t dnaStartIndex,
const float * weights,
std::uint32_t count
)
Parameters
| Name | Remarks |
|---|---|
| dnaStartIndex | Index of the first dna in succession for which the weights apply. |
| weights | C style array of floats, containing weights of DNAs per all regions. |
| count | The number of weights, i.e. the length of the weights array. |