Export animation file after training


I want to export motions(kinematic states) generated from physics simulation with a learned policy as an animation file format such as FBX or Collada so that I can visualize them via Blender or Unity.
Is there any method to save test time results externally?