mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-24 20:17:17 +02:00
Inputs and outputs Attributes are now declared in two separate lists * no more isOutput field on Attribute description * guarantee attributes order (was not the case in Python2 with class attributes) * Attribute's name is now part of its description Note: for now, input and output Attributes are still stored in a single model inside a Graph.
47 lines
1 KiB
Python
47 lines
1 KiB
Python
from meshroom.core import desc
|
|
|
|
|
|
class AppendFiles(desc.CommandLineNode):
|
|
commandLine = 'cat {inputValue} {input2Value} {input3Value} {input4Value} > {outputValue}'
|
|
|
|
inputs = [
|
|
desc.File(
|
|
name='input',
|
|
label='Input File',
|
|
description='''''',
|
|
value='',
|
|
uid=[0],
|
|
),
|
|
desc.File(
|
|
name='input2',
|
|
label='Input File 2',
|
|
description='''''',
|
|
value='',
|
|
uid=[0],
|
|
),
|
|
desc.File(
|
|
name='input3',
|
|
label='Input File 3',
|
|
description='''''',
|
|
value='',
|
|
uid=[0],
|
|
),
|
|
desc.File(
|
|
name='input4',
|
|
label='Input File 4',
|
|
description='''''',
|
|
value='',
|
|
uid=[0],
|
|
),
|
|
]
|
|
|
|
outputs = [
|
|
desc.File(
|
|
name='output',
|
|
label='Output',
|
|
description='''''',
|
|
value='{cache}/{nodeType}/{uid0}/appendText.txt',
|
|
uid=[],
|
|
)
|
|
]
|
|
|