Object type in 2.28

Anyone know how to test object type with 2.28? I had a bit (copied from another script) which said:


 dt=obj.getData()
 if dt.block_type=="NMesh":

However 2.28 doesn’t like this - is there a new way or was there another way all along?

Neil.

for the object type, use:


import Blender

obj = Blender.Object.Get("Plane")
print obj.getType()

Martin

Thanks!