Re: [Qgis-user] Setting a project variable from processing modeler

2021-02-18 Thread Nyall Dawson
On Fri, 19 Feb 2021 at 09:12, Francesco Pelullo  wrote:
>
> Hi list,
>
> is there an algorithm for setting a project variable from a modeler algorithm?

A native one was added in 3.16 - look under the "modeler tools" group.

Nyall

>
> I found this:
> https://gis.stackexchange.com/questions/359386/is-there-a-way-to-edit-project-variables-with-modeller-in-qgis
>
> but if I add this script to the modeler, QGIS 3.10 shows error:
> AttributeError: type object 'QgsProcessingAlgorithm' has no attribute 
> 'FlagSkipGenericModelLogging'
>
> Any help appreciated.
> Thank you
> Francesco
>
> ___
> Qgis-user mailing list
> Qgis-user@lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user


[Qgis-user] Setting a project variable from processing modeler

2021-02-18 Thread Francesco Pelullo
Hi list,

is there an algorithm for setting a project variable from a modeler
algorithm?

I found this:
https://gis.stackexchange.com/questions/359386/is-there-a-way-to-edit-project-variables-with-modeller-in-qgis

but if I add this script to the modeler, QGIS 3.10 shows error:
AttributeError: type object 'QgsProcessingAlgorithm' has no attribute
'FlagSkipGenericModelLogging'

Any help appreciated.
Thank you
Francesco
___
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user