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.


1 Answer 1


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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.