Is there a way to check if objects are selectable in Blender Python?
The code below checks if an object is visible, but is there also something to check if an object is also selectable in viewport?
Example for checking if visible:
if obj.visible_get():
# Do something...
The reason is: If you set off the "Object Types Selectibility" for Meshes, then they can still be selected using python or in the outliner. See my shot, which area I mean.