[GIS] Exporting Processing Modeler as Python script in QGIS 3

pyqgisqgis-3qgis-processing

How do I export my model from Processing Modeler as .py so that I can edit its code?

This does not seem as intuitive as in previous QGIS versions.

Best Answer

Early versions of QGIS 3 did not support exporting models to scripts (See: Why "Export as Python script" button is unaccessible in QGIS 3.0/3.1 Modeler by default?)

From QGIS 3.6, the export to script button is back and creates a proper QGIS3 Processing script:

enter image description here

Related Question