armory/blender/arm/logicnode/native/LN_write_json.py
2021-07-20 20:53:37 +02:00

16 lines
458 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 arm_init(self, context):
self.add_input('ArmNodeSocketAction', 'In')
self.add_input('ArmStringSocket', 'File')
self.add_input('ArmDynamicSocket', 'Dynamic')