widget class randomisation

Hi everybody,

I try to randomise widget classes but it doesn’t work. Do you know how to do this?
On the first screen, this is the event graph for the randomisation.

And on the second screen, this is all of my widget class, but only one is displayed.

Thank you in advance for your answers

1 Like

It looks like it should work, but you will get repeating widgets. That’s just because the random index can choose the same one several times on the trot.

If you want it to be ‘non-repeating random’, then you’ll need more code, to keep track of which widgets have been used.

2 Likes

The script looks fine. Which part does not work? The script is not triggerred? The widget is not added to the viewport / is not visible? The randomisation produces incorrect reaults?

2 Likes

thank you for your replies, it’s a mistake on my part, I had entered some data incorrectly, but it works now.

2 Likes