
I gave a presentation to my local Python Users group a while back... the first half is just a general intro to the project, and the second half of it is mostly based on the extensions subsystem. It's mostly based on the tutorial on the Wiki, but it might give you a few extra hints.
Disclaimer: I haven't written any of my own extensions; treat everything in the presentation with caution!
Best wishes,
AV
On 5 January 2015 at 13:05, Shlomi Fish <shlomif@...2985...> wrote:
Hi Brynn and all,
On Mon, 5 Jan 2015 04:36:16 -0700 "Brynn" <brynn@...3133...> wrote:
Hi Friends, I think I asked this before, but it was mixed up with another subject. And there seems to be a bit of a lull in the action, on the dev mailing list. So I thought it would be a good time to try again, when this is the only subject. In forums, probably 3 to 5 times in a year, people post a message asking either how to write an extension for Inkscape, or about some technical aspect of writing an extension. Or another version is - how to get an extension they wrote to be packed with Inkscape. Unfortunately, most of us don't have a clue about any of it, and there is no place to refer them. Now I'm working on fleshing out the Contribute page of the website, and it would be really nice to be able to provide a link to some kind of guide, or instructions, or article on the subject. It doesn't necessarily need to be a newbie's guide; so it wouldn't be teaching someone like me to write an extension. It would be addressed towards people who already have the needed skills and experience. So if anyone is interested, it would really be a great benefit to the Inkscape community, to have some information, in any kind of format, on how to write an Inkscape extension. It could be placed on the Inkscape wiki, or maybe even in your InkSpace (the gallery on the website) in Tutorials category. Thanks in advance, and thanks for listening. If anyone is interested, just let me know where to find it, when finished, and a link will be included on the Contribute page. :-)
I've originally wrote this Inkscape extension back in 2013 - https://github.com/shlomif/Shlomi-Fish-Back-to-my-Homepage-Logo . Since then my knowledge of writing extensions has become rusty.
Now what I know is:
- The extension accepts arguments on the command line including --id=... and
finally, the input SVG.
It emits the final SVG file to the STDOUT.
There is some support code written for manipulating SVG files written in
Python that is shipped in the Inkscape distribution and used by the Inkscape extensions.
- My code demonstrates how to call one extensions from within another by piping
it through a python command.
Hope it helps.
Regards,
Shlomi Fish
--
Shlomi Fish http://www.shlomifish.org/ Rethinking CPAN - http://shlom.in/rethinking-cpan
<rindolf> She's a hot chick. <rindolf> But she smokes. <go|dfish> She can smoke as long as she's smokin'. — http://www.shlomifish.org/humour/fortunes/show.cgi?id=she-can-smoke
Please reply to list if it's a mailing list post - http://shlom.in/reply .
Dive into the World of Parallel Programming! The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net _______________________________________________ Inkscape-devel mailing list Inkscape-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-devel