I have been stuck on this for a while and I'm not sure if it is a bug or me doing something wrong but I cannot work out how to add Scripts to the processing toolbox in QGIS 3 series.

When I click the Script icon and navigate to "Add script to toolbox" nothing happens. I have looked in my processing options and checked that the directory to the scripts is correct.

  • Are you sure you python file is correct? (ie a valid processing algorithm) What happen if you click "create new script" and then you copy/paste the content of your file? Can you launch it then? – Gustry Dec 21 '18 at 13:29
  • @Gustry thanks for your comment but I'm not sure I understand fully what you mean? – AWGIS Dec 21 '18 at 13:35
  • 1
    What are you trying to do? Do you have an existing Python Processing script and you would like to add it to the Processing panel? Try to click "Create new script" instead of "Add scripts to toolbox", copy/paste your script and try to run it from there – Gustry Dec 21 '18 at 13:38
  • 1
    @AWGIS - Is QgsMapLayerRegistry removed in QGIS3? – Joseph Dec 21 '18 at 13:51
  • 1
    When copy/paste Python code from QGIS 2 to QGIS 3, keep qgis.org/api/api_break.html this page open and ctrl+F and search 'QgsMapLayerRegistry'. It has been removed from QGIS 3. – Gustry Dec 21 '18 at 14:00

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.