Files
LNXSDK/leenkx/blender/lnx/logicnode/krom/LN_sys_command.py
2026-07-13 15:44:52 -07:00

19 lines
596 B
Python

from lnx.logicnode.lnx_nodes import *
class KromSysCommandNode(LnxLogicTreeNode):
"""Executes a system command and returns the exit code"""
bl_idname = 'LNKromSysCommandNode'
bl_label = 'System Command'
lnx_category = 'Krom Runtime'
lnx_section = 'system'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxStringSocket', 'Command')
self.add_input('LnxDynamicSocket', 'Args')
self.add_output('LnxNodeSocketAction', 'Out')
self.add_output('LnxIntSocket', 'Exit Code')