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

18 lines
608 B
Python

from lnx.logicnode.lnx_nodes import *
# Class GetSystemName
class GetSystemName(LnxLogicTreeNode):
"""Returns the name of the current system."""
bl_idname = 'LNGetSystemName'
bl_label = 'Get System Name'
lnx_section = 'Native'
lnx_version = 1
def lnx_init(self, context):
self.add_output('LnxStringSocket', 'System Name')
self.add_output('LnxBoolSocket', 'Windows')
self.add_output('LnxBoolSocket', 'Linux')
self.add_output('LnxBoolSocket', 'Mac')
self.add_output('LnxBoolSocket', 'HTML5')
self.add_output('LnxBoolSocket', 'Android')