ExternalData SliderPack seems to be limited to 128
-
@d-healey In C++ Third party node ExternalData ? I can use more as well within Hise script but apparently not in C++. But I haven’t tested in SNEX (which is probably the same anyway)
-
@ustk Ah sorry, I was thinking of slider pack data objects
-
Actually it affects sliderpack data objects as well - I'm sure it never used to.
const sliderPack = Content.addSliderPack("Sliderpack", 10, 100); sliderPack.set("min", 0); sliderPack.set("max", 100); sliderPack.set("stepSize", 1.0); sliderPack.set("sliderAmount", 200); sliderPack.showControl(true); const sliderPackData = Engine.createAndRegisterSliderPackData(0); sliderPack.referToData(sliderPackData); sliderPack.setSliderAtIndex(127, 10); Console.print(sliderPack.getSliderValueAt(127)); // 10 sliderPack.setSliderAtIndex(128, 10); Console.print(sliderPack.getSliderValueAt(128)); // 1.0
-
@d-healey Oh good one! or bad one...
This explains the issue I have, I'm pretty sure it's a data object that is passed to the ExternalData so that object limitation has a good chance to be the root cause -
@ustk Have you made a github issue?
-
@d-healey I'm trying to fix the issue atm, but it's not looking easy...
-
@d-healey adding
sliderPack.setUsePreallocatedLength(200)
to your code seems to work.
I still have to test with my particular caseI have seen in the source code a preallocation limit of 128 when in backend. This limit might not be sticking around in the binary, I have to test it.
-
@ustk oh interesting, I wasn't aware of that function
-
@d-healey But it doesn't fix my problem... Opening an issue
-
@d-healey Ok it's definitely buggy... I just made it to work by using the preallocation thing, removing it, and setting the nb of sliders manually, and after a restart it's gone again...
-
@ustk Yeah it's giving me super weird behaviour too, and it seems like the data objects have a "memory" so even when you change the number of sliders it shows a previous number that was being used.