Hot answers tagged


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 = ...


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

Only top voted, non community-wiki answers of a minimum length are eligible