summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2016-02-09 02:13:32 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2016-02-09 02:13:32 +0000
commitc9514c8b2801a5bcef7d6fbcfe8eec5b2ff49bbc (patch)
treedd04dc5af1262853c48cff048116badb9cd7bccf /share
parentChanged no end lifetime temporary canvas items to canvas items in measure tool (diff)
downloadinkscape-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')
-rwxr-xr-xshare/extensions/inkex.py3
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