Page 1 of 1

Scripts - How To Program percentages of ANYOF

Posted: 18 Aug 2020 00:36
by D3R3K
I selected multiple libraries on a script line and want to set up percentages to schedule from each of those libraries.
Here's an example: [ANYOF: OLD 1, OLD 2, OLD 3] Want to set this script line to pick "OLD 1" 60% of time, "OLD 2" 30% of time, "OLD 3" 10% of time. Is this possible and if so, how to do it? Thanks for any help.

Re: Scripts - How To Program percentages of ANYOF

Posted: 18 Aug 2020 07:45
by radio42
This is not possible, as ANYOF selects randomly a Lib out of the given ones. There is also no plan to add such a feature to it.

Instead you can use the ‚Execute‘ mode, which executed a referenced script and returns a track as a result.
This referenced script might for example use the Random script mode (to randomly pick a script-line) and then contain as many script-lines as needed to reflect your percentage desired for the different Libs.
E.g. 3 script-lines to randomly pick from Lib A, 5 lines to randomly pick from Lib B, etc.