<div dir="ltr">you can get the dialog of the processing algorithm you want and use that... hereafter a snippet<div><br></div><div><pre class="gmail-code gmail-highlight" lang="python"><span id="gmail-LC48" class="gmail-line" lang="python">    <span class="gmail-n">dialog</span> <span class="gmail-o">=</span> <span class="gmail-n">processing</span><span class="gmail-o">.</span><span class="gmail-n">createAlgorithmDialog</span><span class="gmail-p">(</span><span class="gmail-s">"model:AjustarRasterGCP"</span><span class="gmail-p">,</span>  </span>
<span id="gmail-LC49" class="gmail-line" lang="python">                    <span class="gmail-p">{</span><span class="gmail-s">'puntosgcp'</span><span class="gmail-p">:</span><span class="gmail-n">zeroDeltaHeighPoints</span><span class="gmail-p">,</span></span>
<span id="gmail-LC50" class="gmail-line" lang="python">                     <span class="gmail-s">'rastermdsuav'</span><span class="gmail-p">:</span><span class="gmail-s">''</span><span class="gmail-p">,</span></span>
<span id="gmail-LC51" class="gmail-line" lang="python">                     <span class="gmail-s">'rastermdtlidar'</span><span class="gmail-p">:</span><span class="gmail-s">''</span><span class="gmail-p">,</span></span>
<span id="gmail-LC52" class="gmail-line" lang="python">                     <span class="gmail-s">'grass7:r.mapcalc.simple_1:Raster MDS_UAV Ajustado'</span><span class="gmail-p">:</span><span class="gmail-n">QgsProcessing</span><span class="gmail-o">.</span><span class="gmail-n">TEMPORARY_OUTPUT</span><span class="gmail-p">,</span></span>
<span id="gmail-LC53" class="gmail-line" lang="python">                     <span class="gmail-s">'saga:thinplatesplinetin_1:ErrorSurface'</span><span class="gmail-p">:</span><span class="gmail-n">QgsProcessing</span><span class="gmail-o">.</span><span class="gmail-n">TEMPORARY_OUTPUT</span><span class="gmail-p">})</span></span>
<span id="gmail-LC54" class="gmail-line" lang="python">    <span class="gmail-n">dialog</span><span class="gmail-o">.</span><span class="gmail-n">show</span><span class="gmail-p">()</span></span>
</pre><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><br></div><div>Luigi Pirelli<br><br>**************************************************************************************************<br>* LinkedIn: <a href="https://www.linkedin.com/in/luigipirelli" target="_blank">https://www.linkedin.com/in/luigipirelli</a><br>* Stackexchange: <a href="http://gis.stackexchange.com/users/19667/luigi-pirelli" target="_blank">http://gis.stackexchange.com/users/19667/luigi-pirelli</a><br>* GitHub: <a href="https://github.com/luipir" target="_blank">https://github.com/luipir</a><br>* Book: <a href="https://www.packtpub.com/eu/application-development/mastering-geospatial-development-qgis-3x-third-edition" target="_blank">Mastering QGIS3 - 3rd Edition</a></div><div>* Hire a team: <a href="http://www.qcooperative.net" target="_blank">http://www.qcooperative.net</a><br>**************************************************************************************************</div></div></div></div></div></div></div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 19 Sep 2019 at 12:49, Paul Wittle <<a href="mailto:paul.wittle@dorsetcouncil.gov.uk">paul.wittle@dorsetcouncil.gov.uk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
Sorry if this is a bit of a simple question.<br>
<br>
I have created a script in the processing toolbox and it opens a dialogue box when you double click on it (as you would expect). Given that many users may not understand or even open the processing toolbox I want to trigger the script using a button in my custom plugin.<br>
<br>
I know you can use processing.run(script/model, parameters) but I don't know the parameters and I don't want to recreate the dialogue box in my plugin.<br>
<br>
Is there a python command to simply trigger/open a process to run (replicate clicking on it in the toolbox)?<br>
<br>
Thanks,<br>
Paul<br>
This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. It may contain unclassified but sensitive or protectively marked material and should be handled accordingly. Unless you are the named addressee (or authorised to receive it for the addressee) you may not copy or use it, or disclose it to anyone else. If you have received this transmission in error please notify the sender immediately. All traffic may be subject to recording and/or monitoring in accordance with relevant legislation. Any views expressed in this message are those of the individual sender, except where the sender specifies and with authority, states them to be the views of Dorset Council. Dorset Council does not accept service of documents by fax or other electronic means. Virus checking: Whilst all reasonable steps have been taken to ensure that this electronic communication and its attachments whether encoded, encrypted or otherwise supplied are free from computer viruses, Dorset Council accepts no liability in respect of any loss, cost, damage or expense suffered as a result of accessing this message or any of its attachments. For information on how Dorset Council processes your information, please see <a href="http://www.dorsetcouncil.gov.uk/416433" rel="noreferrer" target="_blank">www.dorsetcouncil.gov.uk/416433</a><br>
_______________________________________________<br>
QGIS-Developer mailing list<br>
<a href="mailto:QGIS-Developer@lists.osgeo.org" target="_blank">QGIS-Developer@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></blockquote></div>