Hi, I have published a more interesting example document. It contains scripting to generate a complete parameterized Guitar Neck profile. I use this to laser cut templates.
The document is in the repo: https://gitlab.com/mnesarco/inkscape-pyscript/blob/master/pyscript_samples/u...
But also attached for general interest (if exists).
Cheers, Frank.
On Thu, Mar 28, 2019 at 10:59 PM Maren Hachmann <maren@...3112...> wrote:
Btw. did you know that since Inkscape 0.92.4, Inkscape already tries to keep selected objects selected, even after running the extension?
This works for modified objects only, not for rendered ones.
Maren
Am 29.03.19 um 03:34 schrieb Andrew Kurn:
On Thu 28 Mar 2019 18:29 -0400, Steve Litt wrote:
On Tue, 26 Mar 2019 15:42:52 -0400 doctormo@...155... wrote:
On Tue, 2019-03-26 at 13:38 -0500, Frank Martínez wrote:
If I am wrong about this, please show me the light ;)
Is it something we should add?
<g inkscape:selectme="true">...</g>
And Inkscape selects such things after running extensions (and cleans up the attribute). It could be added I think very easily.
Another cool thing about that is that selections survives stops and restarts in normal Inkscape usage.
SteveT
Steve,
Either you misunderstand or I do.
What I think Martin means is that, at the end of running each extension, it finds all /selectme/ attributes and makes the selection from them. We agree there.
But, when he says "cleans up", I take it to mean "immediately removes the attribute(s) from the SVG." Thus there is nothing left around to keep in a saved SVG file.
This seems like a required part of the extension-selection process.
Andrew
Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user
Inkscape-user mailing list Inkscape-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/inkscape-user