LNXSDK/leenkx/blender/lnx/logicnode/map/LN_json_stringify.py
2025-01-22 16:18:30 +01:00

18 lines
430 B
Python

from lnx.logicnode.lnx_nodes import *
class JsonStringifyNode(LnxLogicTreeNode):
"""Convert a Haxe object to JSON String.
@input Value: Value to convert.
@output String: JSON String.
"""
bl_idname = 'LNJsonStringifyNode'
bl_label = 'JSON Stringify'
lnx_version = 1
def init(self, context):
self.add_input('LnxDynamicSocket', 'Value')
self.add_output('LnxStringSocket', 'JSON')