mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-01 19:27:10 +02:00
32 lines
742 B
Python
32 lines
742 B
Python
from meshroom.core import desc
|
|
|
|
|
|
class AppendText(desc.CommandLineNode):
|
|
commandLine = 'cat {inputValue} > {outputValue} && echo {inputTextValue} >> {outputValue}'
|
|
|
|
inputs = [
|
|
desc.File(
|
|
name='input',
|
|
label='Input File',
|
|
description='''''',
|
|
value='',
|
|
uid=[0],
|
|
),
|
|
desc.File(
|
|
name='inputText',
|
|
label='Input Text',
|
|
description='''''',
|
|
value='',
|
|
uid=[0],
|
|
)
|
|
]
|
|
|
|
outputs = [
|
|
desc.File(
|
|
name='output',
|
|
label='Output',
|
|
description='''''',
|
|
value=desc.Node.internalFolder + 'appendText.txt',
|
|
uid=[],
|
|
),
|
|
]
|