<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Date: Sat, 8 Apr 2017 13:51:43 -0700 (MST)<br>
From: Tom Chadwin <<a href="mailto:tom.chadwin@nnpa.org.uk">tom.chadwin@nnpa.org.uk</a>><br><br>
They should be there:<br>
<br>
<a href="https://qgis.org/api/classQgsHillshadeRenderer.html" rel="noreferrer" target="_blank">https://qgis.org/api/<wbr>classQgsHillshadeRenderer.html</a><br>
<br><br></blockquote><div><br></div><div>Thanks. Yes, they are there. The problem is I cannot find a way to get to the QgisHillshadeRenderer itself, from the QgsRasterLayer. QgsRasterLayer.renderer() only provides QgsRasterRenderer. Anyways, the .writeXML approach works well enough. [ It is a bit strange that the altitude is named angle as an xml attribute. ]</div><div><br></div><div>Ideally, I would want to get the lightAzimuth and lightAltitude values from the hillshaderendererwidget used in the layer properties gui . Is there a way to get that from a processing python script (or plugin)? The idea is to use existing values provided in the nice existing GUIs as much as possible.</div><div><br></div><div>-Andreas</div></div>
</div></div>