Not that you still need help, but have been trying to learn after effects too, and I think it would also be possible to 'pre-comp' this, and then bring that composition back into the main comp with your static/unaffected stuff.