Already got it working, using the setLegendSymbolItem() on the renderer:
layer = iface.activeLayer()
renderer = layer.renderer()
symbolItems = renderer.legendSymbolItems()
for symbolItem in symbolItems:
print(symbolItem)
symbol = symbolItem.symbol()
color = symbol.color()
Hi Marian,
As I understand you want to set every symbol in your rule based
classification to 80% transparent (instead of the entire layer)?
I tried to write a qgis (v3.4) script but unfortunately it crashes my
qgis. So I hope somebody here can correct it, or maybe you will find the
solution
Hi Janneke,
Thanks for your tests. And indeed the training manual update is a work in
progress and maybe could you publish your remarks as issue reports in the
doc repository [0] so that we took them into consideration as we go.
You are right about the missing data, there was a pull request [1]