mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-06-06 21:01:59 +02:00
[nodes] use FileAttribute for file params
This commit is contained in:
parent
fd9a3ffeda
commit
aa1301679e
1 changed files with 5 additions and 7 deletions
|
@ -5,7 +5,7 @@ class CameraInit(desc.CommandLineNode):
|
||||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||||
commandLine = 'openMVG_main_SfMInit_ImageListing {allParams}'
|
commandLine = 'openMVG_main_SfMInit_ImageListing {allParams}'
|
||||||
|
|
||||||
imageDirectory = desc.ParamAttribute(
|
imageDirectory = desc.FileAttribute(
|
||||||
label='Image Directory',
|
label='Image Directory',
|
||||||
description='''''',
|
description='''''',
|
||||||
value='',
|
value='',
|
||||||
|
@ -23,7 +23,7 @@ class CameraInit(desc.CommandLineNode):
|
||||||
uid=[0],
|
uid=[0],
|
||||||
isOutput=False,
|
isOutput=False,
|
||||||
)
|
)
|
||||||
sensorWidthDatabase = desc.ParamAttribute(
|
sensorWidthDatabase = desc.FileAttribute(
|
||||||
label='Sensor Width Database',
|
label='Sensor Width Database',
|
||||||
description='''''',
|
description='''''',
|
||||||
value='',
|
value='',
|
||||||
|
@ -32,22 +32,20 @@ class CameraInit(desc.CommandLineNode):
|
||||||
uid=[0],
|
uid=[0],
|
||||||
isOutput=False,
|
isOutput=False,
|
||||||
)
|
)
|
||||||
outputDirectory = desc.ParamAttribute(
|
outputDirectory = desc.FileAttribute(
|
||||||
label='Output Directory',
|
label='Output Directory',
|
||||||
description='''''',
|
description='''''',
|
||||||
value='{cache}/{nodeType}/{uid0}/',
|
value='{cache}/{nodeType}/{uid0}/',
|
||||||
shortName='o',
|
shortName='o',
|
||||||
arg='',
|
arg='',
|
||||||
uid=[0],
|
|
||||||
isOutput=True,
|
isOutput=True,
|
||||||
)
|
)
|
||||||
outputSfm = desc.ParamAttribute( # not command line
|
outputSfm = desc.FileAttribute( # not command line
|
||||||
label='Output SfM',
|
label='Output SfM',
|
||||||
description='''''',
|
description='''''',
|
||||||
value='{cache}/{nodeType}/{uid0}/sfm_data.json',
|
value='{cache}/{nodeType}/{uid0}/sfm_data.json',
|
||||||
shortName='o',
|
shortName='o',
|
||||||
arg='',
|
arg='',
|
||||||
uid=[0],
|
|
||||||
isOutput=True,
|
isOutput=True,
|
||||||
group='',
|
group='',
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue