I get the error “expected string block found” so my main problem is getting the name of the selected object to be returned as a string.
Hopefully there’s a way to do this.
select=Blender.Object.GetSelected()
if len(select)>0:
#better if a test controls that the data are meshes
obj=Blender.NMesh.GetRaw(select[0].data.name)