I am looking for a script which will allow me to open an attribute table of the final output of a graphical model in QGIS.

I know that you can use the following lines of code in the console but cannot find work out how to create a script from this that is accepted by the model:

layer = iface.activeLayer()

I want the output of my last stage in the model to be the input to this script so that the attribute table opens when finished.

  • the correct method is activeLayer() not ActiveLayer() – Fran Raga May 16 at 11:41
  • @FranRaga thanks I have now amended – AWGIS May 16 at 11:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.