From c9514c8b2801a5bcef7d6fbcfe8eec5b2ff49bbc Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Tue, 9 Feb 2016 03:13:32 +0100 Subject: 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) --- share/extensions/inkex.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'share') 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 -- cgit v1.2.3