Is there an already available function somewhere deep in bpy to check if an object is (at least) on one of the active layers of the scene?
If not, here is what I made:
def on_active_layer(scene, obj): for j, k in zip(scene.layers, obj.layers): if j & k: return True # return False #
Some opinion, comment, better idea?
EDIT: I forgot to say that it works.