mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
* 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
19 lines
521 B
Python
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],
|
|
)
|
|
|