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

16 lines
587 B
Python

from lnx.logicnode.lnx_nodes import *
class GetObjectOffscreenNode(LnxLogicTreeNode):
"""Returns if the given object is offscreen. Don't works if culling is disabled."""
bl_idname = 'LNGetObjectOffscreenNode'
bl_label = 'Get Object Offscreen'
lnx_section = 'props'
lnx_version = 1
def lnx_init(self, context):
self.inputs.new('LnxNodeSocketObject', 'Object')
self.outputs.new('LnxBoolSocket', 'Is Object Offscreen')
self.outputs.new('LnxBoolSocket', 'Is Mesh Offscreen')
self.outputs.new('LnxBoolSocket', 'Is Shadow Offscreen')