Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
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.).
Usage: 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.