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

16 lines
424 B
Python

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