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

Bug #171640 reported by Douardda on 2006-12-27
This bug affects 1 person
Affects Status Importance Assigned to Milestone

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) on 2007-12-20
Changed in inkscape:
importance: Undecided → Wishlist
Ryan Lerch (ryanlerch) on 2008-01-14
Changed in inkscape:
status: New → Triaged
Mucka (mucka90) wrote :

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

Hachmann (marenhachmann) wrote :

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

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...)

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

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...) on 2016-02-09
Changed in inkscape:
status: In Progress → Fix Committed
Mc (mc...) wrote :

Committed to r14641.

Bryce Harrington (bryce) on 2017-01-10
Changed in inkscape:
status: Fix Committed → Fix Released
su_v (suv-lp) wrote :

Follow-up report:
* Bug #1545095 “ build dict with selected nodes per sub-path per path”

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

Other bug subscribers