mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-07-23 19:47:39 +02:00
[nodes] use 'desc.Node.internalFolder' in outputs values
* avoid duplicating the same string everywhere * don't override 'internalFolder' with the same value default value in subclasses
This commit is contained in:
parent
2eb2c3ac6f
commit
346277629a
34 changed files with 41 additions and 70 deletions
|
@ -3,7 +3,6 @@ from meshroom.core import desc
|
|||
|
||||
|
||||
class CameraLocalization(desc.CommandLineNode):
|
||||
internalFolder = '{cache}/{nodeType}/{uid0}/'
|
||||
commandLine = 'aliceVision_cameraLocalization {allParams}'
|
||||
|
||||
inputs = [
|
||||
|
@ -208,14 +207,14 @@ class CameraLocalization(desc.CommandLineNode):
|
|||
name='outputAlembic',
|
||||
label='Output Alembic',
|
||||
description='''Filename for the SfMData export file (where camera poses will be stored)''',
|
||||
value='{cache}/{nodeType}/{uid0}/trackedCameras.abc',
|
||||
value=desc.Node.internalFolder + 'trackedCameras.abc',
|
||||
uid=[],
|
||||
),
|
||||
desc.File(
|
||||
name='outputJSON',
|
||||
label='Output JSON',
|
||||
description='''Filename for the localization results as .json''',
|
||||
value='{cache}/{nodeType}/{uid0}/trackedCameras.json',
|
||||
value=desc.Node.internalFolder + 'trackedCameras.json',
|
||||
uid=[],
|
||||
),
|
||||
]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue