How to indentify Empty ?


I am doing an export script and the main method looks like this:

scene = Blender.Scene.GetCurrent()

for obj in scene.getChildren() :
if isinstance(obj.getData(),Types.CameraType):
do something with camera
elif isinstance(obj.getData(),Types.NMeshType):
do something with mesh
elif isinstance(obj.getData(),Types.LampType):
do something with lamps

But how can I identify an ‘Empty’ object. There is no Types.Empty
or anything like that. There is not even the word empty in api
documentation index.

Does anyone know?

Thanks a lot.

Best Regards


if obj.getType()==‘Camera’
instead of :
if isinstance(obj.getData(),Types.CameraType):

and, of course :
if obj.getType()==‘Empty’