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