<div dir="ltr"><div>Hi,</div><div><br></div>I'm hoping to make some scripts for labelling layers. <br><br>I've found the basic labelling settings in <br><br><div>    layer = iface.activeLayer()layer.labeling().settings().format().size()</div><div><br></div>for example, and it seems that I could be able to update that with an object like<br><br>    newsize = QgsTextFormat()<br>    newsize.setSize(20)<br>but I haven't yet found the correct way to update the layer's value. <br><br>it seems like it needs to be passed an entire new `QgsPalLayerSettings` object but I haven't found a way to build a complete object. <br><br>I've seen `readFromLayer()` but I'm guessing that was a version 2 method that's no longer available in version 3. <br><br>any pointers or a simple piece of code for updating a layer labelling property would be hugely appreciated. <br><br><div>it also occurs to me to ask whether there is anything like: <br></div><div><br></div><div>    print(layer.renderer().symbol().symbolLayers()[0].properties())</div><div><br></div><div>that returns a dict of the layer symbology properties for a label. <br></div><div><br></div><div>Another helpful thing would be code that imports a label definition from an exported xml file. <br></div><div><br></div><div>thanks,</div><div><br></div><div>hugh   </div><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><br></div></div></div></div></div></div></div></div></div></div>