Python extension extend to all Inkscape function and width height of any element.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Python extension extend to all Inkscape function and width height of any element.

Lrn Lf
Is there away to access Inkscape other function through Python to run Inkscape basic operation of really any operation you can run by hand through the gui. And do anyone know how to get the bounding box width and height of a g svg element or any element that don't have that information set as a attribute. The only solution I can fantom is iterating through the group to find the biggest element of them all but even that can be tricky.  

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Inkscape-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-devel
Reply | Threaded
Open this post in threaded view
|

Re: Python extension extend to all Inkscape function and width height of any element.

doctormo
On Mon, 2018-04-16 at 13:18 -0400, Lrn Lf wrote:
> Is there away to access Inkscape other function through Python to run
> Inkscape basic operation of really any operation you can run by hand
> through the gui. And do anyone know how to get the bounding box width
> and height of a g svg element or any element that don't have that
> information set as a attribute. The only solution I can fantom is
> iterating through the group to find the biggest element of them all
> but even that can be tricky.  

Hi Lrn,

There's functions for finding the bounding box which does the right
thing in python.

Although I'm currently working on an updated API which should make it
easier to discover the functionality. Come talk to me over at https://g
itlab.com/inkscape/extensions/

As for calling Inkscape from the python extension, some extensions
already do this, but I wouldn't recommend it.

Best Regards, Martin Owens

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Inkscape-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/inkscape-devel