LNXSDK/leenkx/blender/lnx/logicnode/object/LN_get_object_visible.py
2025-01-22 16:18:30 +01:00

19 lines
589 B
Python

from lnx.logicnode.lnx_nodes import *
class GetVisibleNode(LnxLogicTreeNode):
"""Returns whether the given object or its visual components are
visible.
@seeNode Set Object Visible"""
bl_idname = 'LNGetVisibleNode'
bl_label = 'Get Object Visible'
lnx_section = 'props'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketObject', 'Object')
self.add_output('LnxBoolSocket', 'Is Object Visible')
self.add_output('LnxBoolSocket', 'Is Mesh Visible')
self.add_output('LnxBoolSocket', 'Is Shadow Visible')