Re: [QGIS-Developer] Processing Script addLayerToLoadOnCompletion

2018-09-04 Thread matteo
Hi Ginetto, well actually this is a simple script and not Processing plugin, so I think no reloading is needed Cheers Matteo ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info:

Re: [QGIS-Developer] Processing Script addLayerToLoadOnCompletion

2018-09-04 Thread Luigi Pirelli
are you reloading processing plugin? the temporary path of processing are statically set once (c++ static var in QgsProcessingUtils) for qgis session => if you reload the processing plugin without exitig processing (e.g. to update the list of scripts), the oldtemp folder is no more available but

Re: [QGIS-Developer] Processing Script addLayerToLoadOnCompletion

2018-09-03 Thread matteo
Hi Håvard, I knew that param has been replaced with parameters.. Anyway, removing parameters is not solving the problem Thanks Matteo On 09/03/2018 06:07 PM, Havard Tveite wrote: > "parameters=" should be removed in the run method. > > Håvard ___

[QGIS-Developer] Processing Script addLayerToLoadOnCompletion

2018-09-03 Thread matteo
Hi all, I was thinking to add a small example of addLayerToLoadOnCompletion function to the ScriptTemplate of Processing. The code is the following: buffered_layer = processing.run("native:buffer", parameters={ 'INPUT': dest_id, 'DISTANCE': 1, 'SEGMENTS': 5,