Scribus Forums

Scribus => Scripts and Plugins => Topic started by: nemiliztli on December 17, 2023, 09:18:29 PM

Title: Scripter function to change basepont
Post by: nemiliztli on December 17, 2023, 09:18:29 PM
Hi,
Is there a scripter function to change the basepoint of a selected object?
Title: Re: Scripter function to change basepont
Post by: a.l.e on December 17, 2023, 10:00:29 PM
mmm... i guess that rotateObjectAbs should be deprecated and replaced by setRotation() (as the companion of the existing getRotation()).

i think that the basepoint should be an optional (named) argument of the new setRotation(), since i don't really see an interest for a script to modify the basepoint (since the user might have set a specific basepoint, the script will need to reset it after having modified it)

i've created a ticket for this:

https://bugs.scribus.net/view.php?id=17079
Title: Re: Scripter function to change basepont
Post by: a.l.e on December 18, 2023, 01:34:23 PM
here is a patch:

https://bugs.scribus.net/view.php?id=17079
Title: Re: Scripter function to change basepont
Post by: nemiliztli on December 18, 2023, 07:03:47 PM
Thanks A.l.e.!
Now how do I install this patch?
Title: Re: Scripter function to change basepont
Post by: a.l.e on December 18, 2023, 08:16:53 PM
well, the easy way is to wait for the patch to get into scribus...

otherwise you can

- download the scribus sources
- install the tools and libraries for compiling
- compile scribus (to check that everything is fine)
- apply the patch to the sources
- compile again scribus

it somehow doable on linux (most of all if you're used to compiling things).
might be hard on windows and / or macos (except if you're used to compile qt programs)

i guess you can try to wait a few days and see what happens.
Title: Re: Scripter function to change basepont
Post by: nemiliztli on December 18, 2023, 11:45:40 PM
Okay, I'll wait. Thank you A.l.e.