import Blender from Blender import * scn = Scene.GetCurrent() me = scn.objects.active.getData(mesh=True) print '--' for f in me.faces: if f.sel: print f.no