diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2016-02-09 02:13:32 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2016-02-09 02:13:32 +0000 |
| commit | c9514c8b2801a5bcef7d6fbcfe8eec5b2ff49bbc (patch) | |
| tree | dd04dc5af1262853c48cff048116badb9cd7bccf /share/extensions | |
| parent | Changed no end lifetime temporary canvas items to canvas items in measure tool (diff) | |
| download | inkscape-c9514c8b2801a5bcef7d6fbcfe8eec5b2ff49bbc.tar.gz inkscape-c9514c8b2801a5bcef7d6fbcfe8eec5b2ff49bbc.zip | |
Allow python extensions to get the list of selected nodes
format : --selected-nodes=id:subpath:position
cf https://bugs.launchpad.net/inkscape/+bug/171640 for a debug test extension
Fixed bugs:
- https://launchpad.net/bugs/171640
(bzr r14641)
Diffstat (limited to 'share/extensions')
| -rwxr-xr-x | share/extensions/inkex.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/share/extensions/inkex.py b/share/extensions/inkex.py index 34caa9d3d..0fdaeea75 100755 --- a/share/extensions/inkex.py +++ b/share/extensions/inkex.py @@ -150,6 +150,9 @@ class Effect: self.OptionParser.add_option("--id", action="append", type="string", dest="ids", default=[], help="id attribute of object to manipulate") + self.OptionParser.add_option("--selected-nodes", + action="append", type="string", dest="selected_nodes", default=[], + help="id:subpath:position of selected nodes, if any")#TODO write a parser for this def effect(self): pass |
