forked from LeenkxTeam/LNXSDK
19 lines
596 B
Python
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')
|