If you have an active object you can find the currently selected sub elements; e. g. in an active mesh you can find the selected vertices while looping over them and check the property bpy.context.active_object.data.vertices[i].select
.
In an active armature you can achieve the same with bpy.context.active_object.data.bones[i].select_head
(or select_tail
).
But for metaballs I cannot find a property
bpy.context.active_object.data.elements[i].select
or something like that. How can I retrieve the selected element(s) in a metaball object?
Background: In Edit mode you can add additional metaballs to a metaball object. I want to move the selected elements via Python.