Re: [Inkscape-user] Writing an extension

Karol Krenski wrote:
On Thu, Aug 18, 2005 at 03:02:06PM -0700, Ted Gould wrote:
I think there is an approach that will solve your problems today rather than waiting. If you use the SVG.pm Perl module (or even the XML one really) you can get the coordinates out of the SVG file that is passed in. Yes, this isn't Inkscape giving you those values, but you can adequately get them for most applications. If you need bounding boxes (which you'd need a renderer for) you can recursively call Inkscape using the Inkscape command line interface to have Inkscape calculate them.
Are we talking about *currently selected / active* nodes? Say a path made of 10 nodes and only 2 of them are now selected by the user, just before he calls my plugin. I need just those two, not all the nodes on path of id=xyz.
No, sorry, I didn't realize that is what you wanted. The selected nodes are only really known by the node tool. But, it isn't impossible that they could be exported on a call to an extension. I'll have to get back to you on that.
--Ted

Ted Gould wrote:
Karol Krenski wrote:
Are we talking about *currently selected / active* nodes? Say a path made of 10 nodes and only 2 of them are now selected by the user, just before he calls my plugin. I need just those two, not all the nodes on path of id=xyz.
No, sorry, I didn't realize that is what you wanted. The selected nodes are only really known by the node tool. But, it isn't impossible that they could be exported on a call to an extension. I'll have to get back to you on that.
I still think this might be just a little beyond the scope of the external extensions. just an opinion. I'd love to see external extensions tidied up just a bit (mostly getting more information to the user) and new energy funneled into internal extensions. And this is all idle talk since I don't really have the knowhow to further that work.
Aaron Spike
participants (2)
-
unknown@example.com
-
Ted Gould