Automate save as shapekey for multiple animation actions
i wasn't able to find a way to fully automate the task but was able to streamline and reduce the time it takes to complete it using this sequence in the command recorder addon Nascent Space suggested, from about 15 minutes to less than 2, so i'm satisfied
bpy.context.view_layer.objects.active = bpy.data.objects['M_Head']
bpy.ops.object.modifier_apply_as_shapekey(keep_modifier=True, modifier=&quot;md_chr0305_2064_hq&quot;)
bpy.context.view_layer.objects.active = bpy.data.objects['md_chr0305_2064_hq']
bpy.ops.object.posemode_toggle()
bpy.ops.pose.select_all(action='SELECT')
bpy.ops.pose.transforms_clear()
bpy.ops.object.posemode_toggle()