armory/blender/arm/logicnode/native/LN_write_json.py
2020-10-05 14:55:56 -03:00

18 lines
546 B
Python

from arm.logicnode.arm_nodes import *
class WriteJsonNode(ArmLogicTreeNode):
"""Writes the given content in the given JSON file.
@seeNode Read JSON"""
bl_idname = 'LNWriteJsonNode'
bl_label = 'Write JSON'
arm_version = 1
def init(self, context):
super(WriteJsonNode, self).init(context)
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('NodeSocketString', 'File')
self.add_input('NodeSocketShader', 'Dynamic')
add_node(WriteJsonNode, category=PKG_AS_CATEGORY, section='file')