Re: General Purpose Python Scripting for Inkscape.

Frank Martínez <[email protected]> Fri, 29 Mar 2019 13:54:33 -0500
Newsgroups gmane.comp.graphics.inkscape.user
Message-ID <CAHRtogzexCxdX32KQradrcHEyQYdz7-Fn2Fbvyz-9XM6OuWYNA@mail.gmail.com>
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/universal-pyscript-neck.svg

But also attached for general interest (if exists).

Cheers,
Frank.


On Thu, Mar 28, 2019 at 10:59 PM Maren Hachmann <[email protected]>
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
> >> [email protected] 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
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/inkscape-user
> >
>
>
>
> _______________________________________________
> Inkscape-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/inkscape-user
>


-- 
Frank D. Martínez M.

_______________________________________________
Inkscape-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/inkscape-user
universal-pyscript-neck.svg (image/svg+xml, 16.4 KB) - not displayed
neck-profile.png (image/png, 150.5 KB) - not displayed