Just wanted to share a simple scripted for quickly baking and exporting animations in Maya. There's quite a few clicks to go through the process, even more so if there is no proper layering for meshes etc, but with this script only one is needed!
select `ls -typ joint`;
BakeSimulation;
select -tgl `ls -typ mesh`;
InvertSelection;
doDelete;
Export;
Basically, it selects all joints and bakes them (from your settings), adds all meshes to the selection, inverts the selection, deletes all unnecessary objects (controls etc.) and exports it all.
Please do save your scene as another file before doing this as it's quite destructive (I believe :poly122:)
:thumbup:
Replies
Now you can select which steps to commit, or do them all at once!
You can download the script here.
I'm still learning MEL, having a blast!
I wanted to know if its compatible with Maya2018
Thanks
I think I tried it some time ago in Maya 2017 and it worked fine, but haven't gotten my hands on Maya 2018. But I don't see why it wouldn't work.
Edit: Please let me know if you need a new download link and I'll fix it when I get home