New answers tagged


Is Python a requirement? If I understand what you want, you can do this in the QGIS UI, in the raster layer properties:


I found this other thread which was helpful How do I set layer transparency in QGIS 2.0 with Python? It seems like there should be a shorter and more efficient way, but I tested this and it works: print 'Start' active_layer = qgis.utils.iface.mapCanvas().currentLayer() raster_transparency = active_layer.renderer().rasterTransparency() ltr = ...


You may use this QGIS Processing script to set transparency for a specific group:

Top 50 recent answers are included