<div dir="ltr">How about this?<div><br></div><div>layer = iface.mapCanvas().currentLayer()</div><div>layer.setLayerTransparency(50)  # int between 0 and 100</div><div>iface.mapCanvas().refresh()</div><div><br></div><div>I don't have a 1.8 version handy, but I think layer.setTransparency() would work with the old API.</div>

<div><br></div><div class="gmail_extra">-Ujaval<br><br><div class="gmail_quote">On Tue, Dec 3, 2013 at 4:55 PM, Geo DrinX <span dir="ltr"><<a href="mailto:geodrinx@gmail.com" target="_blank">geodrinx@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hello all,<br><br></div>... as in object, I need to set the transparency of all the vector layers in my plugin ( "rasparenza" ).<br>

<br></div><div>What is the syntax to set the transparency of a vector layer (in pyQis 1.8 and 2.0 versions ) ?<br>
<br></div><div>I am searching in documentation and in  "gis.stackexchange",  but I only found... myself.<br></div><div><br><br></div><div>Thank you in advance for any info<br><br></div><div>Roberto<br></div></div>


<br>_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br></blockquote></div><br></div></div>