On Tue, 2005-03-29 at 21:16 -0600, fretfind@...540... wrote:
> 2) If you'd like to have an external script called by
Inkscape and
> integrated in, that will work today. The external script will have to
> be able to take in SVG as STDIN or STDOUT, I'm sure that there is a
> Python library to work with SVG. Then, you can do what ever you want
> with it from there.
I suppose I should try this out. I've done a small amount of reading
about this in the past but I still have a host of questions. Will this
work without writing code in C++? Do the filter type extensions only
pump out the full SVG file or is it possible to send and replace just
selected objects?
Effect always deal with the whole SVG file, but they are given the list
of selected objects as parameters on the command line. The reason the
whole file is given is so that things like patterns and gradients can be
created/used more easily. Also, if you wanted to do some special
Z-ordering or something like that, you'd need the whole document. But,
you shouldn't need to write a line of C++, heck you could do it all in
Scheme if you so choose.
There is a list of ideas for effects in the Wiki, you're welcome to add
more, or implement some in the list.
--Ted