LNXSDK/leenkx/blender/lnx/logicnode/custom/LN_run_javascript.py

21 lines
581 B
Python
Raw Normal View History

2025-01-22 16:18:30 +01:00
from lnx.logicnode.lnx_nodes import *
class RunJavascriptNode(LnxLogicTreeNode):
"""Run Javascript"""
bl_idname = 'LNRunJavascriptNode'
bl_label = 'Run Javascript'
bl_description = 'Run Javascript '
lnx_category = 'HTML'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxStringSocket', 'Javascript')
self.add_output('LnxNodeSocketAction', 'Out')
def register():
add_category('HTML', icon='SEQ_STRIP_META')
RunJavascriptNode.on_register()