FBX animation baking script for Game Engine (Truong rigs)
- Please notice, recent versions of Maya use Python 3. I dont have time to update the script to work with Python 3, I'm sorry.
1. Manual but safe:
2. The Script:
I finished the script that can possibly solve the problems with my rigs when exporting fbx for game engine (hopefully).
Video demo: https://youtu.be/-cOcfDZCn8E
Other test: https://www.youtube.com/watch?v=OOMCF5Y6mEE
* You should match the version of the face rig with Advanced Skeleton version number (or as near as possible). No, the latest version of Advanced Skeleton wont work on the old rigs.
* If the face setup still failed to simplify (even the version are matched between the face rig and Advanced Skeleton version), please contact Advanced Skeleton, the face setup is out of my expertise.
https://www.facebook.com/AdvancedSkeleton/
If the face failed to simplify. The face model cannot be exported into fbx/ game engine. If the face and body are all in one continuous shell (1 model), the model wont go to fbx/ game engine. Sorry.
Also note, simplify face process can take a long time for heavy rigs.
* The face can be re-rigged with the latest version of Adv Skeleton - if you know how to use Adv Skel. So, the Simplify button from the latest version of Adv Skel have more chances to work. Also, the author of the script has more will to fix the latest script when it fails than fixing (tons of) the old script. The latest script has "game engine" option in face rigging tab.
* If you're using File > Reference (this will stop the script from doing anything to the rig). So you can try the following:
- Open the original rig, save it as "_simplifiedFace" or any name you can remember.
- Download correct Advanced Skeleton version (use the script to check)
- Open Advanced Skeleton > Face > Simplify Face of this _simplifiedFace rig.
- Try copy animation from your old file (using referencing) into this _simplifiedFace file. Use Studio library or Advanced Skeleton picker (I like studio library more) to copy animation.
- Then you can bake this file and export to game engine.
>>> Or, just import all the rig reference and delete the namespace: https://youtu.be/xK2IXOKxxbI
* In case you want to do it manually: https://youtu.be/GNxbA7gV8W4
* A workaround solution in case you only need the body animation:
- Duplicate the body mesh
- Bind skin the mesh to the Deform Joints (Skin > Bind Skin)
- Copy the skin weight from the Old body mesh to the newly duplicated one. Skin > Copy Skin Weight. The copy skin might not be perfect, you will need to fix it using Skin > Paint Skin Weight Tool > option.
- This duplicated mesh should go to fbx/ game engine with easy. But all the face expression/ jaw movement wont go.
* If you just want to export the models (with animation) into other software to render, then use Alembic export. It's much easier to do, just select meshes and export https://youtu.be/xe0a8oVyl_k
Special thanks to Trong Hoan from @DauPhaiRigging for helping me during the process of making this script.
Let me know if you see any bug/ issue.
Cheers.
Truong
ps: support Truong makes more rigs and tools: