I think this would be really nice functionality to have added to Inkscape. I
get the following error when I run the bbox extension. (Can replicate by
opening a new file, drawing a spiral, selecting it, then choosing
effects->Visualize path->bounding box). I'm using inkscape compiled from SVN
rev. 16429 (Nov 4). - Tom
Traceback (most recent call last):
File "/usr/local/share/inkscape/extensions/bbox.py", line 53, in ?
e.affect()
File "/usr/local/share/inkscape/extensions/inkex.py", line 153, in affect
self.effect()
File "/usr/local/share/inkscape/extensions/bbox.py", line 31, in effect
group = self.document.createElement( 'svg:g' )
AttributeError: 'etree._ElementTree' object has no attribute
'createElement'
Kurt Hutchinson wrote:
On 10/22/07, Keith Trnka <trnka@...2373...> wrote:
> I think I might've not been so clear on what I was looking for -- an
> automatic way to do it with a tool, where I'd select my text, then
> select some tool or script, and have the appropriate size boxes
> created and grouped automatically. I realize I could just do it
> manually, but I don't normally have the time for that.
>
> thanks,
> keith
Attached is a quick extension I put together to create a rectangle for
the bounding box of each selected object, grouping all of the
rectangles. Unfortunately, it's rather slow for multiple objects
because it needs to invoke Inkscape to calculate the bounding box for
each one, but at least it's automated.
Put the two files in your extension directory (share/extensions), and
you'll see a new menu item called "Bounding Box" under Effects >
Visualize Path.
Hope this helps,
Kurt
-------------------------------------------------------------------------
This
SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/
_______________________________________________
Inkscape-user mailing list
Inkscape-user(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-user
--
View this message in context:
http://www.nabble.com/Drawing-boxes-around-objects--tf4672410.html#a13727499
Sent from the Inkscape - User mailing list archive at
Nabble.com.