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

16 lines
427 B
Python

from lnx.logicnode.lnx_nodes import *
class DisplayInfoNode(LnxLogicTreeNode):
"""Returns the current display resolution.
@seeNode Get Window Resolution
"""
bl_idname = 'LNDisplayInfoNode'
bl_label = 'Get Display Resolution'
lnx_section = 'screen'
lnx_version = 1
def lnx_init(self, context):
self.add_output('LnxIntSocket', 'Width')
self.add_output('LnxIntSocket', 'Height')