[SOLVED] InterpolateNumbersArray3 outputs NaN when at the maximum index

Tags: #<Tag:0x00007f703d39c7b8>

When the interpolated number reaches the last index of the array, the output of the OP is NaN.

You can reproduce the bug simply by using the following setup.

Adding this block fixes the issue

const maxIdx = Math.floor((arr.length / 3) - 1);
const intIdx = Math.floor(inIndex.get());
if (intIdx == maxIdx) {
1 Like

thanks for reporting.

this is fixed on live. example here: https://cables.gl/p/cVGZim

1 Like

Thank you!
I’m trying to edit the title to added a [FIXED] but I can’t.