Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
I was trying to write a little extension script that printed the id of
all selected paths in an Inkscape document.
I seem to have hit a snag. I think there may be a bug in inkex.py, or
I am not using it correctly. (The latter is more likely.)
Here is the stack trace I get when I try to run my script:
Traceback (most recent call last):
File "/usr/share/inkscape/extensions/printPathIds.py", line 46, in ?
File "/usr/share/inkscape/extensions/printPathIds.py", line 25, in effect
File "/usr/share/inkscape/extensions/inkex.py", line 139, in getselected
for id in self.options.ids:
AttributeError: 'NoneType' object has no attribute 'ids'
It seems like the error is indicating that there is nothing selected
in Inkscape when the script is run. (I think that is what it means
when it says 'NoneType' object has no attribute 'ids'.) However, I do
have paths selected in Inkscape when I try to run the script.
Do you guys have any suggestions on how I can correct the error?
Thanks for all the help.
P.S. - I have attached a copy of the Inkscape extension script that
generates the error message.