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 ? effect.effect() File "/usr/share/inkscape/extensions/printPathIds.py", line 25, in effect self.getselected() 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.
Scott Huey
P.S. - I have attached a copy of the Inkscape extension script that generates the error message.