On 6/5/20 6:46 AM, fern...@neuf.fr wrote: > <span style="font-family:arial,helvetica,sans-serif">Hello<br> > <br> > I am trying to get with a python script the following property objects > (launch in the script console):</span><br> > <br> > import scribus<br> > scribus.getProperty("Image1", "imageXOffset")<br> > scribus.getProperty("Image2", "imageYOffset")<br> > <br> > scribus.getProperty("Image", "imageXScale")<br> > <br> > By comparing with the values in the property tab I get the right value > for imageXScale but not for imageXOffset and imageXOffset<br> > <br> > Anybody has any suggestions on what am I doing wrong??
Hi, 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. Greg ___ Scribus Mailing List: scribus@lists.scribus.net Edit your options or unsubscribe: http://lists.scribus.net/mailman/listinfo/scribus See also: http://wiki.scribus.net http://forums.scribus.net