Use it to seamlessly change the object's Rotate Order during an animation. It is very useful when you notice that current Rotate Order leads to gimbal problem. Or if you want to choose the Rotate Order that fits better to your needs (e.g. FK\IK arm's axis, head, pelvis, etc.).
1. Paste the script to Script Editor's tab (Python).
2. In the last line <switchRotateOrder("xzy")> replace "xzy" with any order you like.
3. Select an object that has keyframes (e.g an animation control).
4. Run the script and wait for a few seconds.
Attention: rotateXYZ must have keyframes at the same positions.
Tips: use with "GraphEditor->Curves->Euler Filter" to reach the best results.