So basically you want to run a for-loop x-number of times you want a brick to be selected. F.e. you want to select 50 bricks
$i start , <51 end
for($i=1; $i < 51); $i++)
{
}
inside the loop you check if there is an object with the name "brick"+"current run number"
if there is an object with that name you add it to selection.
if you reach maximum number of loopruns or an object with the name you looking for doesn't exist you end the loop
I am at work and can't look up the syntax at the moment but that's one solution for it basically.
Hope that helps
Last edited by AverageRigger; 29-01-2020 at 03:25 PM.