armory/blender/arm/logicnode/native/LN_write_json.py
2020-10-27 19:44:37 +01:00

17 lines
504 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_section = 'file'
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')