[FMX] duplicating clips in a grid fashion

Well i want to duplicate clips so they are in a grid fashion. I thought about something similar to this tutorial:


But for that, you can’t have for example, 27 of the same clips. It will always be 25, 30, 35 - depending on your i and j values of course.

So the question is how can you chagne the code from the tutorial, so the grid isn’t actually a grid. In other words, have 5 clips in row 1, 5 clips in row 2, but 2 clips in row 3.

I hope that wasn’t too confusing :puzzled: thanks :tie: