I want to be able to "commit" (or "realize") all Shape Key deformations on multiple selected objects using Python.
By this I mean: create a New Shape From Mix, then delete all other shapes, then finally delete the mix result shape, leaving the selected objects altered but with no more shape key data.
Here's what I've got so far:
context = bpy.context
scene = context.scene
sel_objs = context.selected_objects
for each selected object...
New Shape From Mix
Get the number of shape key indices.
Iterate through and remove all except the last (leaving the last one as the true shape):
Then remove the final remaining one as well (for cleanup).
I'm unclear on some of the details when putting this all together. Any help appreciated.