[scribus] setting basepoint in script

Owen rcook at pcug.org.au
Mon Jul 13 01:10:49 CEST 2009

On Sun, 12 Jul 2009 10:39:25 -0700
Ralph Stirling <Ralph.Stirling at wallawalla.edu> wrote:

> I'm trying to build a script for creating yearbooks.
> In positioning text in captions, I would like to
> position some text frames (ones that are right-justified
> text) based on the upper-right corner rather than
> the upper left.  I cannot find a way to specify the
> basepoint in a script, nor does it seem possible to
> fit a text frame to content so I can calculate the UR
> corner position relative to the UL position.
> Is there a technique I'm missing, or do I need to
> submit a feature request for a scripting improvement?


I took this out of the API in Help.

createText(x, y, width, height, ["name"]) -> string 
Creates a new text frame on the actual page and returns its name. The
coordinates are given in the actual measurement unit of the document
(see UNIT constants). "name" should be a unique identifier for the
object because you need this name for further referencing of that
object. If "name" is not given Scribus will create one for you. 

May raise NameExistsError if you explicitly pass a name that's already

Is that what you were after?


More information about the scribus mailing list