[nodes] PanoramaPostProcessing: Fix "previewSize"'s range

- Fixed the range of the "previewSize" parameter: since its step was set
to 5000, it could only be set to 0 or 1000. It can now be set from 0 to
5000 with steps of 100 pixels;
- Fixed the case of the "previewSize" and "outputPanoramaPreview";
- Improved the description of "previewSize", and added descriptions for
"outputPanorama" and "outputPanoramaPreview".
This commit is contained in:
Candice Bentéjac 2023-03-30 12:13:16 +02:00 committed by Fabien Servant
parent f51919a8f3
commit 36686492f3

View file

@ -33,10 +33,10 @@ Post process the panorama.
), ),
desc.IntParam( desc.IntParam(
name='previewSize', name='previewSize',
label='Panorama preview Width', label='Panorama Preview Width',
description='Choose the output preview width (in pixels).', description='The width (in pixels) of the output panorama preview.',
value=1000, value=1000,
range=(0, 1000, 5000), range=(0, 5000, 100),
uid=[0] uid=[0]
), ),
desc.ChoiceParam( desc.ChoiceParam(
@ -63,15 +63,15 @@ Post process the panorama.
desc.File( desc.File(
name='outputPanorama', name='outputPanorama',
label='Output Panorama', label='Output Panorama',
description='', description='Generated panorama in EXR format.',
semantic='image', semantic='image',
value=desc.Node.internalFolder + 'panorama.exr', value=desc.Node.internalFolder + 'panorama.exr',
uid=[], uid=[],
), ),
desc.File( desc.File(
name='outputPanoramaPreview', name='outputPanoramaPreview',
label='Output Panorama preview', label='Output Panorama Preview',
description='', description='Preview of the generated panorama in JPG format.',
semantic='image', semantic='image',
value=desc.Node.internalFolder + 'panoramaPreview.jpg', value=desc.Node.internalFolder + 'panoramaPreview.jpg',
uid=[], uid=[],