[scribus] Problem with getProperty
gpittman at iglou.com
Fri Jun 5 13:08:42 UTC 2020
On 6/5/20 6:46 AM, fernast at neuf.fr wrote:
> <span style="font-family:arial,helvetica,sans-serif">Hello<br>
> I am trying to get with a python script the following property objects (launch in the script console):</span><br>
> import scribus<br>
> scribus.getProperty("Image1", "imageXOffset")<br>
> scribus.getProperty("Image2", "imageYOffset")<br>
> scribus.getProperty("Image", "imageXScale")<br>
> By comparing with the values in the property tab I get the right value for imageXScale but not for imageXOffset and imageXOffset<br>
> Anybody has any suggestions on what am I doing wrong??
It helps if you tell us what version of Scribus you're using.
Secondly, please submit emails in plain text, not HTML.
>From what I can tell, the getObjectProperty() command has been deprecated, even in later 1.4.x versions.
In 1.5.x, there is now getImageScale(), which returns a tuple of the x,y values.
Similarly, there is now getImageOffset() which returns a tuple of the x,y values for that.
This is yet another reason to advance to 1.5.x Scribus.
More information about the scribus