Re: [QGIS-Developer] set data defined override expression with python?

2018-10-18 Thread Raymond Nijssen
On 16-10-18 04:19, Nyall Dawson wrote: The API uses ints instead of the direct DataDefinedProperty enums, as the enums vary by part of code (there's separate enums for symbology, labelling, layouts, etc) For symbology: layer = QgsSvgMarkerSymbolLayer(...) ... layer.setDataDefinedProperty(

Re: [QGIS-Developer] set data defined override expression with python?

2018-10-15 Thread Nyall Dawson
On Tue, 16 Oct 2018 at 05:06, Raymond Nijssen wrote: > > So now I'd like to set another expression, quite similar, but this time > the svg-path to a QgsSvgMarkerSymbolLayer. > > Where can I find the name of that property? I found the > QgsLayoutObject.PictureSource here: > >

Re: [QGIS-Developer] set data defined override expression with python?

2018-10-15 Thread Raymond Nijssen
So now I'd like to set another expression, quite similar, but this time the svg-path to a QgsSvgMarkerSymbolLayer. Where can I find the name of that property? I found the QgsLayoutObject.PictureSource here:

Re: [QGIS-Developer] set data defined override expression with python?

2018-08-22 Thread Raymond Nijssen
Thank you Nyall! Does exactly what I need. Will add it to the python cookbook. Raymond On 22-08-18 00:10, Nyall Dawson wrote: On Wed, 22 Aug 2018 at 01:41, Raymond Nijssen wrote: Hi devs! I'd like my python plugin to set an expression for overriding a property and I have no clue how to

Re: [QGIS-Developer] set data defined override expression with python?

2018-08-21 Thread Nyall Dawson
On Wed, 22 Aug 2018 at 01:41, Raymond Nijssen wrote: > > Hi devs! > > I'd like my python plugin to set an expression for overriding a property > and I have no clue how to do so. I expect there must be some generic way > to set expressions. > > Specifically, I want to set the expression for the