> While trying to activate with iface.setactivelayer I am facing an error.
The error is complaining that iface is None. Your code doesn't show what value you assigned to this variable - where did you set iface and what value did you set it to? I think you forgot to set it and that is why you are getting this error. Cheers, Adam. _______________________________________________ QGIS-User mailing list QGIS-User@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user