import Blender as B sel = B.Object.GetSelected() for i in sel: print i.name