6 actors with 12 animations, you can just remove all the animations, create the template collision as the video suggests and go from there, it won't take long. Trying to do that by code is over-complicating your life and making your game perform needless operations.
There's also the possibility that collision shapes added at runtime don't persist when you switch animations. If that is the case, which your "doesn't work" comment suggests, your code approach is not appropriate in this loop format.