blender plugin: check if a layer is use or not