Skip to content

Commit

Permalink
[nodes] PanoramaCompositing: add optional custom cache folder
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiencastan committed Dec 8, 2020
1 parent 358436d commit 5900403
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions meshroom/nodes/aliceVision/PanoramaCompositing.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,6 @@ class PanoramaCompositing(desc.CommandLineNode):
value='',
uid=[0],
),
desc.File(
name='cacheFolder',
label='Cache Folder',
description="Temporary cache directory",
value='',
uid=[0],
),
desc.File(
name='warpingFolder',
label='Warping Folder',
Expand Down Expand Up @@ -98,6 +91,15 @@ class PanoramaCompositing(desc.CommandLineNode):
advanced=True,
uid=[0]
),
desc.File(
name='customCacheFolder',
label='Cache Folder',
description="Temporary cache directory",
value='',
uid=[0],
group='',
advanced=True,
),
desc.ChoiceParam(
name='verboseLevel',
label='Verbose Level',
Expand All @@ -117,4 +119,11 @@ class PanoramaCompositing(desc.CommandLineNode):
value=desc.Node.internalFolder + 'panorama.{outputFileTypeValue}',
uid=[],
),
desc.File(
name='cacheFolder',
label='Cache Folder',
description='Temporary cache directory',
value=lambda attr: attr.node.customCacheFolder.value if attr.node.customCacheFolder.value else (desc.Node.internalFolder + 'cache/'),
uid=[],
),
]

0 comments on commit 5900403

Please sign in to comment.