We want to be able to dispose of all animgroups except one. Issue is, we cannot use a for loop to find the animgroup we want to keep and delete the rest. Because then we would be removing part of the thing we loop over.
We can:
Extract the group and remove the rest, then put that group back
Reorder the groups so we keep our group at index 0 and then remove the tail.
We want to be able to dispose of all animgroups except one. Issue is, we cannot use a for loop to find the animgroup we want to keep and delete the rest. Because then we would be removing part of the thing we loop over. We can: