Hi Nicolas,I don't know if it is the intended behaviour, anyway it seems to me parameterAsEnumString and parameterAsEnumStrings return the correct value when |usesStaticStrings is set to True, while parameterAsEnum and parameterAsEnums when ||usesStaticStrings is set to False.
In addition, the parameter defaultValue should be set to a single value and not to a list if ||allowMultiple is set to False.
Best regards. Andrea Giudiceandrea | Il 24/02/2023 14:11, Nicolas Godet via QGIS-Developer ha scritto:
I noticed in a custom alg that `parameterAsEnumStrings` always return the default value set in QgsProcessingParameterEnum.
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer