2018-11-14 15:43:42 +01:00
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
2020-09-08 21:16:20 +02:00
|
|
|
class WriteFileNode(ArmLogicTreeNode):
|
2020-10-05 19:55:56 +02:00
|
|
|
"""Writes the given content in the given file.
|
2020-09-28 15:58:41 +02:00
|
|
|
|
|
|
|
@seeNode Read File"""
|
2018-11-14 15:43:42 +01:00
|
|
|
bl_idname = 'LNWriteFileNode'
|
|
|
|
bl_label = 'Write File'
|
2020-09-13 11:27:58 +02:00
|
|
|
arm_version = 1
|
2020-09-08 17:03:24 +02:00
|
|
|
|
2018-11-14 15:43:42 +01:00
|
|
|
def init(self, context):
|
2020-09-13 11:27:58 +02:00
|
|
|
super(WriteFileNode, self).init(context)
|
2020-09-08 21:49:02 +02:00
|
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
|
|
self.add_input('NodeSocketString', 'File')
|
|
|
|
self.add_input('NodeSocketString', 'String')
|
2018-11-14 15:43:42 +01:00
|
|
|
|
2020-09-09 20:48:35 +02:00
|
|
|
add_node(WriteFileNode, category=PKG_AS_CATEGORY, section='file')
|