How to know the ON / OFF state of eyes in outliner The outliner has three object show / hide buttons as shown in the image below.



I learned about hide_select and hide_viewport on / off status as follows. But I don't know how to look at the eye icon.

import bpy
obj = bpy.data.objects['Cube.002']
print(obj.hide_select)
print(obj.hide_viewport)


How to know the ON / OFF state of eyes in outliner?
import bpy

obj =  bpy.data.objects['Cube.002']
#obj.hide_set(1)
obj.hide_get()


See the documentation