I have a raster layer loaded in QGIS and I'd like to be able to set its transparency via the Python console. I'm new to the API and have not been able to find out how to do this. Any help would be greatly appreciated!
Here's what I see from the console:
>>> l = qgis.utils.iface.activeLayer() >>> l <qgis.core.QgsRasterLayer object at 0x07144DF8> >>> rt = l.rasterTransparency() Traceback (most recent call last): File "<input>", line 1, in <module> AttributeError: 'QgsRasterLayer' object has no attribute 'rasterTransparency'
I'm just loading a single band raster in GeoTiff format with a palleted color scheme... nothing too fancy. Am I getting the layer incorrectly?