i have 12 connected primitives with a class attribute and i want to have 6 groups with it
but only with the first and second and the third and fourth and so on.
so i did the following
int count = int(1+(@class/2) ); for(int i = 0; i < count; i++) { string groupname = sprintf("layer%i",i); setprimgroup(0,groupname, @primnum, 1, "set"); setprimgroup(0,groupname, @primnum+count, 1, "add"); }
do i need a second for loop in the first or modulo with 2 to get 01 23 45 67 89 etc..
?
cheerz the Heavy