21 lines
581 B
Python
21 lines
581 B
Python
|
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()
|