Pass list of selected nodes to script when in "Node edition"

Bug #171640 reported by Douardda
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Fix Released
Wishlist
Mc

Bug Description

It would be useful to be able to pass to Python script the list of selected
nodes (instead of the selected path only).

The usecase I have in mind for this feature is I wanted to write a Python
script that bevel (round or straight) any corner selected node of a path.
But AFAIK, I cannot do this with the actual version of Inkscape (SVN from a
couple of weeks ago).

nightrow (jb-benoit)
Changed in inkscape:
importance: Undecided → Wishlist
Ryan Lerch (ryanlerch)
Changed in inkscape:
status: New → Triaged
Revision history for this message
Mucka (mucka90) wrote :

Is it still impossible to pass to the script the list of selected nodes ?

Revision history for this message
Hachmann (marenhachmann) wrote :

@Mucka: yes, that's the case, I just learnt that.

Revision history for this message
Mc (mc...) wrote :

Attached is a proposed fix for this bug.
It adds an argument for each selected node, formatted like "--selected-node=id:subpath:position" (ie : the selected node is at the $yth position on the $xth subpath of path with id $id ).

Changed in inkscape:
status: Triaged → In Progress
assignee: nobody → Mc (mc...)
Revision history for this message
su_v (suv-lp) wrote : Re: [Bug 171640] Re: Pass list of selected nodes to script when in "Node edition"

Patch tested successfully with Inkscape 0.91+devel r14617 and attached
debug extension.

Revision history for this message
jazzynico (jazzynico) wrote :

Patch tested successfully on Windows XP, Inkscape trunk rev. 14637. Of course none of the existing extensions use nodes, but I haven't found any obvious regression so far (mostly tested with the Modify path and Visualize path extensions).

Proposing to commit to the trunk.

Changed in inkscape:
milestone: none → 0.92
Mc (mc...)
Changed in inkscape:
status: In Progress → Fix Committed
Revision history for this message
Mc (mc...) wrote :

Committed to r14641.

Bryce Harrington (bryce)
Changed in inkscape:
status: Fix Committed → Fix Released
Revision history for this message
su_v (suv-lp) wrote :

Follow-up report:
* Bug #1545095 “inkex.py: build dict with selected nodes per sub-path per path”
  https://bugs.launchpad.net/inkscape/+bug/1545095

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.