inkex.py: build dict with selected nodes per sub-path per path
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Inkscape |
New
|
Wishlist
|
Unassigned |
Bug Description
Follow-up report to:
Bug #171640: Pass list of selected nodes to script when in "Node edition"
https:/
Add new method to Effect() in inkex.py to parse the new command line arguments passed from inkscape listing each selected node and build a dictionary of selected nodes per sub-path per path for ease of use in extensions (similar to getselected() and the dict self.selected).
Proposed diff attached (please do not commit without code review - feedback would be an appreciated bonus).
TODO:
- verify order of selected nodes per sub-path as passed from inkscape
(IIRC currently, the order is not related to selection)
- if nodes are passed in selection order, either use lists for sub-paths,
or track selection order separately (dicts in python are not ordered).
Changed in inkscape: | |
assignee: | su_v (suv-lp) → nobody |
status: | In Progress → Confirmed |
Changed in inkscape: | |
status: | Triaged → In Progress |
Changed in inkscape: | |
milestone: | 0.92 → 0.93 |
description: | updated |
description: | updated |
Debug extension to test the new feature attached.