To export a single Shape Key as OBJ file, all we have to do is set the desired Shape Key to 1 (or whatever value we like) and use the File – Export dialogue to create an OBJ with the shape/morph applied.
However, if you have several dozen Shape Keys that need to be exported, repeating the above several dozen times can be tedious and error prone. Blender hasn’t got an built-in option for such a batch-export operation, but thanks to a lovely man named TLousky, we can use a handy Python Script to do the job.
Here it is, with minor amendments by yours truly:
Excellent… what exactly does it do?
This script will iterate over each Shape Key of the currently selected object, set each shape key to a value of 1, and export it to the desired path as OBJ file. Feel free to change the scale upon export if you like, and don’t forget to set a valid path for where you’d like your OBJs to be saved.
Awesome… how do we run this thing, Cap’m?
To run a script in Blender, open a Text Editor window (NOT the Python Console). I like using the Timeline Window for that. Click the New button to create a new text file. Now copy the entire code from above into the otherwise empty window inside Blender and hit the Run Script button at the bottom of the window.
Blender will go to work and do its thing. With a bit of luck, no error message will be displayed. Your destination folder should now contain the desired OBJ files.
I’ve explained how to do it all step-by-step in the above video.
Enjoy!Catch this episode on my 3D Podcast: