select -r "obj_*";
not a good idea as it selects the shapes too this may cause confusion of certain odd combinations. Use,
select -r ls -type transform "obj\_*"
;
instead. Anyway i made a quick filter that operates on current selection so its more usefull for you in future
global proc jooFilterSelectionToEveryNthObject(int $n)
{
string $selection[], $newSelection[];
$selection = `ls -sl`;
for ($i = 0; $i < size($selection); $i += $n)
{
$newSelection[$i/$n] = $selection[$i];
}
select -r $newSelection;
}
so your total script would be, after adding that proc to your memory/lookup path:
select -r ls -type transform "obj\_*"
;
jooFilterSelectionToEveryNthObject 3;
Normally i would try to avoid using main selection but because its a utility for modelling it shall suffice.