Dear Inkscape Friends,

I have pushed the current code to Gitlab, take it as an experiment, the code is pretty basic, it just works for me and my use cases. There is no documentation yet but i published it to hear some feedback.

I suspect this kind of functionality can be developed inside inkscape c++ codebase, it is pretty simple, it is just a window to edit code, and a call to python external interpreter.

My current environment is: Inkscape 0.92.4 and Python 2.7.12

Here is the link to the project (work in progress project):

https://gitlab.com/mnesarco/inkscape-pyscript

Cheers,

Frank D. Martínez. (mnesarco)






On Tue, Mar 26, 2019 at 1:38 PM Frank Martínez <mnesarco@...155...> wrote:
Hi Andrew,

I am afraid it is not possible to select objects inside inkscape from external python extensions without using dbus or something like that. My scripting extension knows nothing about inkscape itself, only have access to the svg document. It is possible to add some metadata with ids of selected objects to be used later for other extensions, but Inkscape will ignore them.

If I am wrong about this, please show me the light ;)

Cheers,
Frank.



On Mon, Mar 25, 2019 at 9:46 PM Andrew Kurn <kurn@...3346...> wrote:
On Fri 22 Mar 2019 20:42 -0500, Frank Mart?nez wrote:
>
> Hi Guys,
>
> Inkscape is amazing!, I am a professional software developer, I have been
> working in an embedded scripting plugin for Inkscape, . . .


One question:  Have you found a way of selecting an object
after your script runs?

This point bothered me several times and I hope you found a
solution.

Andrew



_______________________________________________
Inkscape-user mailing list
Inkscape-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user


--
Frank D. Martínez M.


--
Frank D. Martínez M.