Meshroom/nodes/AppendText.py
Fabien Castan 096da0689d Initial version
* plugins loader
* graph IO in json
* uid computation
* commandLine expression evaluation
* subprocess execution
* generate statistics
* export command logs to file
* save/load status file
* only compute nodes not previously computed
2017-09-18 00:31:29 +02:00

19 lines
521 B
Python

from processGraph import desc
class AppendText(desc.CommandLineNode):
commandLine = 'cat {inputValue} > {outputValue} && echo {inputTextValue} >> {outputValue}'
input = desc.FileAttribute(
label='Input File',
uid=[0],
)
output = desc.FileAttribute(
label='Output',
value='{cache}/{nodeType}/{uid0}/appendText.txt',
isOutput=True,
hasExpression=True,
)
inputText = desc.FileAttribute(
label='Input Text',
uid=[0],
)