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

18 lines
545 B
Python

from lnx.logicnode.lnx_nodes import *
class WebviewSendNode(LnxLogicTreeNode):
"""Sends a message to the given WebView received via window.onMessage"""
bl_idname = 'LNWebviewSendNode'
bl_label = 'Webview Send'
lnx_category = 'Krom Runtime'
lnx_section = 'webview'
lnx_version = 1
def lnx_init(self, context):
self.add_input('LnxNodeSocketAction', 'In')
self.add_input('LnxIntSocket', 'ID')
self.add_input('LnxStringSocket', 'Message')
self.add_output('LnxNodeSocketAction', 'Out')