[scribus] Problem with getProperty

Gregory Pittman gpittman at iglou.com
Sat Jun 6 13:12:07 UTC 2020


On 6/6/20 2:13 AM, Stéphane Fernandez wrote:
> thanks *JLuc and Greg
> *
> 
> I am using version 1.48 and seems (Jluc is right) that although my document is set with millimeters, the getproperty will return points.
> 
> I have tried version1.55 with greg's script and got the same result (document set up in mm but script returns value in points). So if I stay in points, i got the what I see is what i get right.
> 
> So I have now an explanation at least but It is a little "weird" as what you see is not what you get when in mm unit and that I am storing those values for further use in another script :(

This is one of those things that "is what it is".
>From the manual:

getImageOffset(...)
getImageOffset(["name"]) -> (x,y) 
Returns a (x, y) tuple containing the offset values in point unit of the image frame "name". If "name" is not given the currently selected item is used. 

Greg




More information about the scribus mailing list