Scripting engine in version 1.6.4?

Previous topic - Next topic

hjh

Hi

Then entry page about scripting in the wiki
https://wiki.scribus.net/canvas/Category:Scripts
mentions a new scripting engine in a note.

"The next steps will be to get the script engine to work (should already be ok)"

Is a new scripting engine working in 1.6.4? And what is new about it?

There is a documentation for Scribus version 1.5 about a scripter 2

https://scribus-scripter.readthedocs.io/en/latest/#

Does this documentation apply to Scribus 1.6.4?

--Hannes

P.S. If I evaluate the following

import scribus
document = Scripter.activeDocument
margins = document.margins
margins.top

in the console window I get an error message.



a.l.e

That Scripter is in Scribus, but I doubt that it works.
And you need to recompile Scribus with that Scripter activated (instead of the "normal" one) to use it.

It has never been used and it's basically abandoned.

I have plans for creating a new engine, with a more structured API, but it's not really a high priority right now.
(I guess that I need to sit down with Jean, and find out why it does not build...)

hjh

Hi Ale

Thank you for the explanation about the status of a new scripter engine. I am fine using the scripter API as it is now.

So for clarification I updated on the wiki the "Scripts root page" by moving an updated version of the note about a new scripter engine to the bottom of the page.
https://wiki.scribus.net/canvas/Category:Scripts
When it is ready it may be put back to a prominent position again.


I also updated page
https://wiki.scribus.net/canvas/Scripter_API
to include that the web page maintained by you https://impagina.org/scribus-scripter-api/ refers to version 1.7.

In addition I added the tip by prcek on  how to get the current API by using in the console the snippet

import scribus
help(scribus)

I guess that goes for what is actually implemented. And might be more up to date then what is in the Help window. However I am not sure about that.

--Hannes