Hey,
I'm trying to read in all the elements in an SVG file and call the bbox method on each shape. Is there a simple way to do this?
Thanks
--Marguerite
The fastest method (assuming you are writing an extension) is to spawn another instance of Inkscape using the --query-all parameter. This returns as a csv list of all objects in the image id,x,y,w,h.
I can provide a sample of an extension doing this, if desired.
-Rob A>
On Tue, Jun 10, 2008 at 10:48 AM, M dtm <mdestroi@...155...> wrote:
Hey,
I'm trying to read in all the elements in an SVG file and call the bbox method on each shape. Is there a simple way to do this?
Thanks
--Marguerite
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
No samples necessary. That's just what I needed.
Thanks a lot!
2008/6/10 Rob Antonishen <rob.antonishen@...155...>:
The fastest method (assuming you are writing an extension) is to spawn another instance of Inkscape using the --query-all parameter. This returns as a csv list of all objects in the image id,x,y,w,h.
I can provide a sample of an extension doing this, if desired.
-Rob A>
On Tue, Jun 10, 2008 at 10:48 AM, M dtm <mdestroi@...155...> wrote:
Hey,
I'm trying to read in all the elements in an SVG file and call the bbox method on each shape. Is there a simple way to do this?
Thanks
--Marguerite
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
participants (2)
-
M dtm
-
Rob Antonishen