This is an export script I wrote for some game assets, specifically it lets me keep rigged buildings in a single blend file, and animate them relative to each other, and then export with the armature translation zeroed out, culls out specific actions(animations) based on naming, then puts everything back where they were before the export. A pretty specific use case, but it made it a lot easier to animate 25 different buildings each with unique animations, and keep the exports as lean as possible. I used Copilot to help with some of the code, I found it helped in some areas, in others, not much help at all.