How to call "path division operation" from python ?

Other sites and resources for Inkscape users.
dextermagnific

How to call "path division operation" from python ?

Postby dextermagnific » Mon Nov 15, 2010 8:57 pm

Hi All,

I'd like to know if it is possible to call the menu operation "Path -> division" from a python extension and how ?

Thanks

User avatar
prkos
Posts: 1625
Joined: Tue Nov 06, 2007 8:45 am
Location: Croatia

Re: How to call "path division operation" from python ?

Postby prkos » Mon Nov 15, 2010 9:35 pm

Through the use of verbs, you can see a list of all verbs by typing inkscape --verb-list

http://inkscape.modevia.com/inkscape-man.html
just hand over the chocolate and nobody gets hurt

Inkscape Manual on Floss
Inkscape FAQ
very comprehensive Inkscape guide
Inkscape 0.48 Illustrator's Cookbook - 109 recipes to learn and explore Inkscape - with SVG examples to download

~suv
Posts: 2272
Joined: Sun May 10, 2009 2:07 am

Re: How to call "path division operation" from python ?

Postby ~suv » Mon Nov 15, 2010 10:04 pm

dextermagnific wrote:if it is possible to call the menu operation "Path -> division" from a python extension and how?

Extension scripts cannot access internal Inkscape commands.

If you use linux and know how to build inkscape from the sources, you might consider using the dbus scripting API in Inkscape trunk. Note that documentation and examples are scarce since this is only part of the development branch for now and not enabled by default.


Return to “Inkscape Resources”