Just print the name of the ShapeKey attached to the selected object
import bpy
selectList = bpy.context.selected_objects
if selectList[0].data.shape_keys:
for tes in selectList[0].data.shape_keys.key_blocks:
print(tes.name)
Blender2.8 Personal notes
Recommended Posts