New answers tagged

2

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


7

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


0

You may use this QGIS Processing script to set transparency for a specific group: https://github.com/jkall/qgis-processing-scripts/blob/master/set_transparency_for_group.py



Top 50 recent answers are included